libxkbcommon/test
Ran Benita 1a930bf256 Add API to query whether a modifier is consumed
Currently the user has no way of knowing which of the active modifiers
have been used in the translation of a keycode to its keysyms. The use
case is described in the GTK docs: say there's a menu accelerator
activated by "<Alt>+". Some layouts have "+" shifted, and some have it
on the first level. So in keymaps where "+" is shifted, the Shift
modifier is consumed and must be ignored when the user is testing
for "<Alt>+". Otherwise, we may get "<Alt><Shift>+" and the accelerator
should not actually fire.

For this we also use the preserve[] information in the key types, which
can forces us to report modifiers as unconsumed even if they were used
in the translation. Until now we didn't do anything with this
information.

The API tries to match its surronding. It's not very efficient but this
can be fixed.

Signed-off-by: Ran Benita <ran234@gmail.com>
2012-08-08 10:03:38 +03:00
..
data types: remove DeleteLevel1MapEntries 2012-08-07 13:20:37 +03:00
.gitignore Add an interactive evdev test 2012-07-28 11:43:15 +02:00
common.c Run source tree through uncrustify 2012-07-17 10:20:15 +01:00
context.c context test: Use test_get_context() 2012-07-27 11:59:55 +02:00
dump.c utils: add/replace string equality macros 2012-07-27 00:27:24 +03:00
filecomp.c types: don't use canonical/required types 2012-08-07 13:20:37 +03:00
interactive.c Add API to query whether a modifier is consumed 2012-08-08 10:03:38 +03:00
keyseq.c keyseq: use our own keysyms 2012-08-07 11:09:42 +03:00
log.c utils: add/replace string equality macros 2012-07-27 00:27:24 +03:00
namescomp.c Run source tree through uncrustify 2012-07-17 10:20:15 +01:00
rules-file.c utils: add/replace string equality macros 2012-07-27 00:27:24 +03:00
rulescomp.c utils: add/replace string equality macros 2012-07-27 00:27:24 +03:00
state.c Add a library of common test functions 2012-07-12 14:48:22 +01:00
stringcomp.c Run source tree through uncrustify 2012-07-17 10:20:15 +01:00
test.h utils: add/replace string equality macros 2012-07-27 00:27:24 +03:00
xkey.c utils: add/replace string equality macros 2012-07-27 00:27:24 +03:00