From 6557a31049680af85eb94b4cec9bf9dc30accaa0 Mon Sep 17 00:00:00 2001 From: Jesse Date: Mon, 16 Sep 2019 15:52:27 +1000 Subject: [PATCH] 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. --- Applications/Terminal/TerminalWidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Applications/Terminal/TerminalWidget.cpp b/Applications/Terminal/TerminalWidget.cpp index d4a1badcd2..1ab140e603 100644 --- a/Applications/Terminal/TerminalWidget.cpp +++ b/Applications/Terminal/TerminalWidget.cpp @@ -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)