diff --git a/Userland/Libraries/LibVT/TerminalWidget.cpp b/Userland/Libraries/LibVT/TerminalWidget.cpp index c7a8b1e272..2086215e0f 100644 --- a/Userland/Libraries/LibVT/TerminalWidget.cpp +++ b/Userland/Libraries/LibVT/TerminalWidget.cpp @@ -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); }