1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 21:17:45 +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:
RasmusNylander 2021-12-16 14:17:39 +01:00 committed by Andreas Kling
parent 35afd32a51
commit 64684cbd5d
2 changed files with 14 additions and 7 deletions

View file

@ -28,4 +28,6 @@ private:
KeyButton() = default;
bool m_pressed { false };
bool m_face_hovered { false };
void set_face_hovered(bool value);
};