summaryrefslogtreecommitdiff
path: root/src/shared/specifier.c
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-10-03 13:11:08 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2014-10-03 15:57:00 +0200
commit884964a9639649422d3613500cdacea48a4ccc91 (patch)
tree28fd050d2df794152e76504e0c7e5f0ddc6d5b2a /src/shared/specifier.c
parentf8958c3495edf6d1563a5309e84bd68931a46213 (diff)
terminal/idev: add helper to match keyboard shortcuts
Matching keyboard shortcuts on internationalized keyboards is actually non-trivial. Matching the actual key is easy, but the modifiers can be used by both, the matching and the translation step. Therefore, XKB exports "consumed-modifiers" that we use to figure out whether a modifier was already used by the translation step. The new IDEV_KBDMATCH() helper can be used to match on any keyboard shortcut and it will do the right thing.
Diffstat (limited to 'src/shared/specifier.c')
0 files changed, 0 insertions, 0 deletions