mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 10:18:15 +09:00
LibGUI: Include keyboard modifier state with button on_click calls
This will allow you us to implement special behavior when Ctrl+clicking a button.
This commit is contained in:
parent
3a905aed06
commit
977863ea07
Notes:
sideshowbarker
2024-07-19 06:42:03 +09:00
Author: https://github.com/awesomekling
Commit: 977863ea07
37 changed files with 76 additions and 76 deletions
|
@ -52,7 +52,7 @@ public:
|
|||
bool is_hovered() const { return m_hovered; }
|
||||
bool is_being_pressed() const { return m_being_pressed; }
|
||||
|
||||
virtual void click() = 0;
|
||||
virtual void click(unsigned modifiers = 0) = 0;
|
||||
virtual bool accepts_focus() const override { return true; }
|
||||
virtual bool is_uncheckable() const { return true; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue