From ccb7b887ce4e6274d9d297a96aa5b8860283f30d Mon Sep 17 00:00:00 2001 From: Petr Vanek Date: Mon, 12 Dec 2011 15:36:19 +0100 Subject: [PATCH] scroll to bottom on input --- lib/TerminalDisplay.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/TerminalDisplay.cpp b/lib/TerminalDisplay.cpp index 9924173..4c4fbad 100644 --- a/lib/TerminalDisplay.cpp +++ b/lib/TerminalDisplay.cpp @@ -2553,6 +2553,10 @@ void TerminalDisplay::keyPressEvent( QKeyEvent* event ) if ( emitKeyPressSignal ) emit keyPressedSignal(event); + // a little hack to ensure terminal goes into its "edit" line + _scrollBar->setValue(_scrollBar->maximum()); + // end of the hack + event->accept(); }