mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 04:54: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:
parent
cb03ab4a5a
commit
2e8ff1855c
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue