diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-10-05 17:44:09 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-10-05 18:02:28 +0200 |
commit | 62d5068d631fd655efe3ae4ad51fffe28e13e27a (patch) | |
tree | 7a971ccfcdc9b2f4881d58a6516f070623640eaa /src/libsystemd-terminal/idev.h | |
parent | 34dbefceb1377ccd7871e183d7791f76fe879e73 (diff) |
terminal/idev: don't remove consumed-mods from kbd-matches
XKB consumed mods include modifiers that *didn't* affect the translation,
but might affect it if used. This is very misleading, given that we are
usually not interested in that information. Therefore, keep them in real
mods to behave like X11 does. Maybe at some point, XKB introduces proper
shortcut matching...
Also make evcat display consumed modifiers so we can better debug those
situations.
Diffstat (limited to 'src/libsystemd-terminal/idev.h')
-rw-r--r-- | src/libsystemd-terminal/idev.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-terminal/idev.h b/src/libsystemd-terminal/idev.h index ea79bb6ab6..c8c03f3d41 100644 --- a/src/libsystemd-terminal/idev.h +++ b/src/libsystemd-terminal/idev.h @@ -123,7 +123,7 @@ static inline bool idev_kbdmatch(idev_data_keyboard *kdata, return false; real = kdata->mods & ~kdata->consumed_mods & significant; - if (real != (mods & ~kdata->consumed_mods)) + if (real != mods) return false; return !memcmp(syms, kdata->keysyms, n_syms * sizeof(*syms)); |