Parcourir la source

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.
Andreas Kling il y a 5 ans
Parent
commit
5c779c124b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      Libraries/LibVT/TerminalWidget.cpp

+ 1 - 1
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());
 }