1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 07:24:58 +00:00

Browser: Allow system shortcuts to function

Before shortcuts like ALT-F4, etc did not work. This makes the window
ignore keydown events. In the future this may be altered to allow for
custom shortcuts from within ladybird?
This commit is contained in:
Hugh Davenport 2024-01-04 16:52:10 +13:00 committed by Andrew Kaster
parent cb03ab4a5a
commit 2e8ff1855c

View file

@ -718,6 +718,10 @@ void BrowserWindow::event(Core::Event& event)
case GUI::Event::Resize:
broadcast_window_size(static_cast<GUI::ResizeEvent&>(event).size());
break;
case GUI::Event::KeyDown:
// FIXME: add support for hotkeys *within* ladybird
event.ignore();
break;
default:
break;
}