Terminal: Scroll cursor into view when typing (#568)
When the user has scrolled up and begins typing, the scrollbar will automatically return them to the current cursor position so that they can see what they're typing.
This commit is contained in:
parent
444a4e4d39
commit
6557a31049
Notes:
sideshowbarker
2024-07-19 12:05:13 +09:00
Author: https://github.com/Quaker762 Commit: https://github.com/SerenityOS/serenity/commit/6557a310496 Pull-request: https://github.com/SerenityOS/serenity/pull/568
1 changed files with 2 additions and 0 deletions
|
@ -184,6 +184,8 @@ void TerminalWidget::keydown_event(GKeyEvent& event)
|
|||
|
||||
write(m_ptm_fd, &ch, 1);
|
||||
}
|
||||
|
||||
m_scrollbar->set_value(m_scrollbar->max());
|
||||
}
|
||||
|
||||
void TerminalWidget::paint_event(GPaintEvent& event)
|
||||
|
|
Loading…
Add table
Reference in a new issue