mirror of
https://github.com/labwc/labwc.git
synced 2025-10-31 22:25:34 -04:00
keyboard: include pressed modifiers in bound set
This prevents applications from seeing and handling the release event for a modifier key that was part of a keybinding (e.g. Firefox displays its menu bar for a lone Alt press + release).
This commit is contained in:
parent
fe9491443c
commit
98bf316ee6
3 changed files with 18 additions and 5 deletions
|
|
@ -19,7 +19,7 @@
|
|||
uint32_t *key_state_pressed_sent_keycodes(void);
|
||||
int key_state_nr_pressed_sent_keycodes(void);
|
||||
|
||||
void key_state_set_pressed(uint32_t keycode, bool ispressed);
|
||||
void key_state_set_pressed(uint32_t keycode, bool is_pressed, bool is_modifier);
|
||||
void key_state_store_pressed_key_as_bound(uint32_t keycode);
|
||||
bool key_state_corresponding_press_event_was_bound(uint32_t keycode);
|
||||
void key_state_bound_key_remove(uint32_t keycode);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue