mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 02:12:09 -05:00
LibVT: Don't scroll to bottom for Ctrl/Alt/Shift
It's nice that we scroll the cursor into view when typing in a terminal but it's not necessary when pressing only Ctrl, Alt of Shift.
This commit is contained in:
parent
09189e34e3
commit
5a84944dc8
1 changed files with 2 additions and 1 deletions
|
@ -244,7 +244,8 @@ void TerminalWidget::keydown_event(GKeyEvent& event)
|
|||
write(m_ptm_fd, &ch, 1);
|
||||
}
|
||||
|
||||
m_scrollbar->set_value(m_scrollbar->max());
|
||||
if (event.key() != Key_Control && event.key() != Key_Alt && event.key() != Key_Shift)
|
||||
m_scrollbar->set_value(m_scrollbar->max());
|
||||
}
|
||||
|
||||
void TerminalWidget::paint_event(GPaintEvent& event)
|
||||
|
|
Loading…
Add table
Reference in a new issue