mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:37:36 +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:
parent
a9bc626639
commit
52a5da51bf
1 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue