-
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.
Changed the value of the following constant to match the actual name of their corresponding modifier: - `XKB_MOD_NAME_ALT` - `XKB_MOD_NAME_LOGO` - `XKB_MOD_NAME_NUM` Added support for the following modifiers: - `Meta` - `Super` (alternative constant) - `Hyper` - `LevelThree` - `LevelFive` - `ScrollLock`
- Loading branch information
Showing
5 changed files
with
64 additions
and
6 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,9 @@ | ||
The following constants for modifiers names were modified to match the actual | ||
names and not their corresponding real modifier mapping: | ||
- `XKB_MOD_NAME_ALT`: `Alt` (was: `Mod1`) | ||
- `XKB_MOD_NAME_LOGO`: `Super` (was: `Mod4`) | ||
- `XKB_MOD_NAME_NUM`: `NumLock` (was: `Mod2`) | ||
|
||
This is a breaking change per se, but together with the changes in the functions | ||
`xkb_state_mod_*_active` it should has no visible impact. In fact it will make | ||
these functions resilient to unusual modifiers mappings. |
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,12 @@ | ||
Added the following modifiers names definitions in `xkbcommon-names.h`: | ||
- `XKB_MOD_NAME_MOD1` | ||
- `XKB_MOD_NAME_MOD2` | ||
- `XKB_MOD_NAME_MOD3` | ||
- `XKB_MOD_NAME_MOD4` | ||
- `XKB_MOD_NAME_MOD5` | ||
- `XKB_MOD_NAME_META` | ||
- `XKB_MOD_NAME_SUPER` | ||
- `XKB_MOD_NAME_HYPER` | ||
- `XKB_MOD_NAME_LEVEL3` | ||
- `XKB_MOD_NAME_LEVEL5` | ||
- `XKB_MOD_NAME_SCROLL` |
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
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