mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +00:00
KeyboardMapper: Fix discrepancy between cursor and button clickability
KeyButton now only responds to clicks on the key-cap's face. This corresponds to when the cursor switches from the default arrow to a hand.
This commit is contained in:
parent
35afd32a51
commit
64684cbd5d
Notes:
sideshowbarker
2024-07-17 21:33:16 +09:00
Author: https://github.com/RasmusNylander
Commit: 64684cbd5d
Pull-request: https://github.com/SerenityOS/serenity/pull/11443
Reviewed-by: https://github.com/awesomekling
2 changed files with 14 additions and 7 deletions
|
@ -28,4 +28,6 @@ private:
|
|||
KeyButton() = default;
|
||||
|
||||
bool m_pressed { false };
|
||||
bool m_face_hovered { false };
|
||||
void set_face_hovered(bool value);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue