summaryrefslogtreecommitdiff
path: root/Libraries/LibVT
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-03-30 13:15:47 +0200
committerAndreas Kling <kling@serenityos.org>2020-03-30 13:15:47 +0200
commit5c779c124b36fe314fa2a3a0a931ba033a47c5f1 (patch)
tree193267acfe020dc0bc933fdd6d3529d8b33305ec /Libraries/LibVT
parenta1c718e38703132b85f11f9ace55eb40ddf55cbf (diff)
downloadserenity-5c779c124b36fe314fa2a3a0a931ba033a47c5f1.zip
LibVT: Don't scroll-to-bottom when pressing the Logo key
Let's treat the Logo key like all the other modifiers and not scroll to the bottom of the buffer.
Diffstat (limited to 'Libraries/LibVT')
-rw-r--r--Libraries/LibVT/TerminalWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibVT/TerminalWidget.cpp b/Libraries/LibVT/TerminalWidget.cpp
index 5108097138..0324df3ef0 100644
--- a/Libraries/LibVT/TerminalWidget.cpp
+++ b/Libraries/LibVT/TerminalWidget.cpp
@@ -271,7 +271,7 @@ void TerminalWidget::keydown_event(GUI::KeyEvent& event)
write(m_ptm_fd, &ch, 1);
}
- if (event.key() != Key_Control && event.key() != Key_Alt && event.key() != Key_Shift)
+ if (event.key() != Key_Control && event.key() != Key_Alt && event.key() != Key_Shift && event.key() != Key_Logo)
m_scrollbar->set_value(m_scrollbar->max());
}