LibVT: Make shortcuts propagate completely before terminal input

This allows shorcuts to be used in the Terminal app rather than
processing the terminal input first and ignoring shortcuts after.
This commit is contained in:
Zaggy1024 2022-11-03 17:59:41 -05:00 committed by Sam Atkins
commit 52a5da51bf
Notes: sideshowbarker 2024-07-17 04:28:25 +09:00

View file

@ -206,8 +206,13 @@ void TerminalWidget::event(Core::Event& event)
void TerminalWidget::keydown_event(GUI::KeyEvent& event)
{
// We specifically need to process shortcuts before input to the Terminal is done
// since otherwise escape sequences will eat all our shortcuts for dinner.
window()->propagate_shortcuts_up_to_application(event, this);
if (event.is_accepted())
return;
if (m_ptm_fd == -1) {
event.ignore();
return GUI::Frame::keydown_event(event);
}