libxkbcommon/test
Pierre Le Marre b5a140832b keysyms: Fix xkb_keysym_is_modifier
Currently `xkb_keysym_is_modifier` does not detect the following keysyms:
- `XKB_KEY_ISO_Level5_Shift`
- `XKB_KEY_ISO_Level5_Latch`
- `XKB_KEY_ISO_Level5_Lock`

Indeed, there is a mistake in the keysym interval that the code checks.
The reason seems a confusing order of the keysyms in
`xkbcommon-keysyms.h`: the current code has a comment “libX11 only goes
up to XKB_KEY_ISO_Level5_Lock”, but in fact the modifiers keysyms are
listed in a _semantic_ order in `xkbcommon-keysyms.h`, not in the
increasing keysym _value_ order.

Fixed by using the same (correct) code as libX11 and added some tests.
2024-01-10 14:43:29 +01:00
..
data test: add a test for multiple keysyms (and some minimal docs) 2023-12-27 12:23:46 +01:00
atom.c test/atom: use correct format specifier for size_t 2019-12-28 14:13:52 +02:00
buffercomp.c Prevent recursive includes of keymap components 2023-11-06 22:06:25 +01:00
common.c keysyms: Add XKB_KEYSYM_NAME_MAX_SIZE for internal use 2024-01-10 14:18:43 +01:00
compose.c keysyms: Add XKB_KEYSYM_NAME_MAX_SIZE for internal use 2024-01-10 14:18:43 +01:00
context.c test: move mkdir & mkdtemp calls to common place and fix them on MSVC 2022-09-24 12:31:53 +03:00
evdev-scancodes.h test: make most tests portable by copying linux/input.h locally 2014-09-06 11:29:15 +03:00
filecomp.c Disallow producing NULL character with escape sequences 2023-09-26 17:25:49 +02:00
keymap.c test: add a test for multiple keysyms (and some minimal docs) 2023-12-27 12:23:46 +01:00
keyseq.c build: include config.h manually 2019-12-27 13:09:11 +02:00
keysym.c keysyms: Fix xkb_keysym_is_modifier 2024-01-10 14:43:29 +01:00
log.c Messages: merge macros with and without message code 2023-09-24 09:09:24 +02:00
messages.c Add xkb-check-messages tool 2023-09-19 08:49:52 +02:00
modifiers.c Add support for modmap None (#291) 2023-05-01 23:30:41 +03:00
registry.c registry: Parse “popularity” attribute 2023-11-21 08:10:22 +01:00
rules-file-includes.c build: include config.h manually 2019-12-27 13:09:11 +02:00
rules-file.c rules: early detection of invalid encoding 2023-11-03 04:16:50 +01:00
rulescomp.c build: include config.h manually 2019-12-27 13:09:11 +02:00
state.c Replace keycode numeric offset with EVDEV_OFFSET 2023-07-04 10:59:19 +02:00
stringcomp.c build: include config.h manually 2019-12-27 13:09:11 +02:00
symbols-leak-test.py Python: make ruff & black happy 2023-09-29 09:42:08 +02:00
test-keysym.py Python: make ruff & black happy 2023-09-29 09:42:08 +02:00
test.h xkbcli-compile-compose: Fix string result escaping 2023-11-19 09:57:24 +01:00
tool-option-parsing.py xkbcli: Promote compose to xkbcli-compile-compose 2023-11-19 09:57:24 +01:00
utf8.c Do not interpret nor emit invalid Unicode encoding forms 2023-05-13 22:02:46 +03:00
utils.c utils: add streq_null() for streq that allows NULL values 2020-07-06 15:15:20 +10:00
x11.c Test: Use a xvfb wrapper for x11 test 2023-09-18 16:07:09 +02:00
x11comp.c Test: Enable x11comp and use the xvfb wrapper 2023-09-18 16:07:09 +02:00
xkeyboard-config-test.py.in Python: make ruff & black happy 2023-09-29 09:42:08 +02:00
xvfb-wrapper.c Test: Catch SIGUSR1 from Xvfb for X11 tests 2023-09-18 16:07:09 +02:00
xvfb-wrapper.h fix error with "-Wl,--gc-sections" 2023-12-02 19:13:39 +02:00