feat: show only pressed keys
this setting (--only-pressed
) causes keys to be hidden from display when released
useful for games/interactive applications/non typing uses of keyboard
this is probably close to the minimal changes needed to implement this feature but it isn't particularly clean.
ideas for future:
- move "unpress" logic to separate method which returns a bool to preserve control flow sanity in key_press()
- investigate if
is_control
field in KeyData tuple can be removed andkeysym
used instead - add option to gui settings dialog
Edited by gandalf3