1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:37:35 +00:00

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.
This commit is contained in:
Andreas Kling 2020-03-30 13:15:47 +02:00
parent a1c718e387
commit 5c779c124b

View file

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