Browse 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 5 years ago
parent
commit
5c779c124b
1 changed files with 1 additions and 1 deletions
  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);
         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());
         m_scrollbar->set_value(m_scrollbar->max());
 }
 }