Skip to content

feat: show only pressed keys

gandalf3 requested to merge gandalf3/screenkey:master into master

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 and keysym used instead
  • add option to gui settings dialog
Edited by gandalf3

Merge request reports