1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:37:35 +00:00

LibGUI: Allow widgets to opt-out from showing the command palette

This commit is contained in:
Sam Atkins 2022-02-03 15:01:07 +00:00 committed by Andreas Kling
parent a4cb6a49ae
commit bf4328de52
2 changed files with 6 additions and 1 deletions

View file

@ -283,6 +283,9 @@ public:
void set_accepts_emoji_input(bool b) { m_accepts_emoji_input = b; }
bool accepts_emoji_input() const { return m_accepts_emoji_input; }
void set_accepts_command_palette(bool b) { m_accepts_command_palette = b; }
bool accepts_command_palette() const { return m_accepts_command_palette; }
virtual Gfx::IntRect children_clip_rect() const;
AK::Variant<Gfx::StandardCursor, NonnullRefPtr<Gfx::Bitmap>> override_cursor() const { return m_override_cursor; }
@ -378,6 +381,7 @@ private:
bool m_enabled { true };
bool m_updates_enabled { true };
bool m_accepts_emoji_input { false };
bool m_accepts_command_palette { true };
bool m_shrink_to_fit { false };
bool m_default_font { true };