EventControllerKey and modifier keys
In Four-in-a-Row, when the game is over with a winner, hitting any key makes the winning line blink. But currently, that excludes the modifier keys: this allows to type a shortcut (<Alt> + F4, <Ctrl> + N, etc.) without the blinking animation.
When using the key-press-event
signal, that’s easy to do: GdkEventKey has a “is-modifier
” property.
I cannot find a correct way to do that when using an EventControllerKey (I can probably make a list of modifiers names, but that’s a bit ugly). Would it be possible to have something like gdk_x11_keymap_key_is_modifier()
into non-X11 code? or to give another way to easily extract this information?