From 5c779c124b36fe314fa2a3a0a931ba033a47c5f1 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 30 Mar 2020 13:15:47 +0200 Subject: [PATCH] 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. --- Libraries/LibVT/TerminalWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); }