mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 08:15:07 +00:00
LibGUI: Ignore application-global shortcuts in modal windows
This is making me question the usefulness of application-global shortcuts, but for now let's just prevent them from triggering while you're looking at a modal message box..
This commit is contained in:
parent
ebaf20547c
commit
50aa726db7
1 changed files with 2 additions and 1 deletions
|
@ -165,7 +165,8 @@ void WindowServerConnection::handle(const Messages::WindowClient::KeyDown& messa
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!action) {
|
// NOTE: Application-global shortcuts are ignored while a modal window is up.
|
||||||
|
if (!action && !window->is_modal()) {
|
||||||
action = Application::the()->action_for_key_event(*key_event);
|
action = Application::the()->action_for_key_event(*key_event);
|
||||||
#ifdef KEYBOARD_SHORTCUTS_DEBUG
|
#ifdef KEYBOARD_SHORTCUTS_DEBUG
|
||||||
dbg() << " > Asked application, got action: " << action;
|
dbg() << " > Asked application, got action: " << action;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue