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
commit 64684cbd5d
Notes: sideshowbarker 2024-07-17 21:33:16 +09:00
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);
};