1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 19:57:45 +00:00

LibGUI: CommandPalette: Fix key event capture for actions

This patch fixes an issue for applications that contain actions without
a modifier (e.g. PixelPaint). Previously when pressing any key bound to
an action while the CommandPalette was visible the action was forwarded
to the parent instead of the CommandPalette.
This commit is contained in:
faxe1008 2022-09-05 21:17:45 +02:00 committed by Andreas Kling
parent 5ff63a9eb0
commit d91469ebb1
3 changed files with 5 additions and 4 deletions

View file

@ -36,6 +36,7 @@ public:
bool is_modal() const { return m_window_mode != WindowMode::Modeless; }
bool is_blocking() const { return m_window_mode == WindowMode::Blocking; }
bool is_capturing_input() const { return m_window_mode == WindowMode::CaptureInput; }
bool is_fullscreen() const { return m_fullscreen; }
void set_fullscreen(bool);