Fix display sometimes randomly scrolling down

If another modifier (e. g. Meta) was pressed, Konsole interpreted it as
the user typing something and helpfully scrolled to the bottom.

REVIEW: 128786
parent 04dce679
...@@ -224,17 +224,13 @@ void SessionController::trackOutput(QKeyEvent* event) ...@@ -224,17 +224,13 @@ void SessionController::trackOutput(QKeyEvent* event)
{ {
Q_ASSERT(_view->screenWindow()); Q_ASSERT(_view->screenWindow());
// jump to the end of the history buffer unless the key pressed // Only jump to the bottom if the user actually typed something in,
// is one of the three main modifiers, as these are used to select // not if the user e. g. just pressed a modifier.
// the selection mode (eg. Ctrl+Alt+<Left Click> for column/block selection) if (event->text().isEmpty()) {
switch (event->key()) { return;
case Qt::Key_Shift:
case Qt::Key_Control:
case Qt::Key_Alt:
} }
} }
void SessionController::interactionHandler() void SessionController::interactionHandler()
{ {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment