1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:17:35 +00:00

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
parent a9bc626639
commit 52a5da51bf

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