-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add a keymap test with decimal and hexadecimal keysyms. - Reorganize code in `test/keysym.c` by parsing type: name, Unicode and hexadecimal. - Add more tests for edge cases. In particular: - test decimal format (currently not supported); - test the Unicode and hexadecimal ranges more thoroughly; - test with wrong case without the XKB_KEYSYM_CASE_INSENSITIVE flag; - test surrounding spaces. - Document the tests.
- Loading branch information
Showing
3 changed files
with
159 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
default alphanumeric_keys | ||
xkb_symbols "numeric keysyms" { | ||
name[Group1]= "My Awesome Layout"; | ||
|
||
key <AD01> { [ 536870909 ] }; | ||
key <AD02> { [ 0x1ffffffe ] }; | ||
key <AD03> { [ 0x1fffffff, 0xffffffff ] }; | ||
|
||
modMap Mod1 { 536870909 }; | ||
modMap Mod2 { 0x1ffffffe }; | ||
modMap Mod3 { 0x1fffffff }; | ||
modMap Mod4 { 0xffffffff }; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters