diff options
author | Ran Benita <ran234@gmail.com> | 2012-08-01 11:25:34 +0300 |
---|---|---|
committer | Ran Benita <ran234@gmail.com> | 2012-08-07 11:09:42 +0300 |
commit | 7c7e43415128229c97b2f9efa756c485774caa3b (patch) | |
tree | 4b55cb05215f268b644f8d52d74d02f294880cd3 /xkbcommon | |
parent | c6dee4640a6eff283bc868fbc4aca33aa48ddb42 (diff) |
Use only one set of core mod name-to-index functions
These were repeated 5 times.
Note that this changes the ABI slightly: XKB_MOD_NAME_CAPS is changed
from "Caps Lock" to "Lock", which is the ordinary legacy mod name for
it. Since its hidden behind a #define, it's best to stay compatible with
the old names (as I think was intended, given that "Mod1", etc. are the
same).
Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'xkbcommon')
-rw-r--r-- | xkbcommon/xkbcommon-names.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xkbcommon/xkbcommon-names.h b/xkbcommon/xkbcommon-names.h index c302a35..8034f3d 100644 --- a/xkbcommon/xkbcommon-names.h +++ b/xkbcommon/xkbcommon-names.h @@ -27,7 +27,7 @@ #define _XKBCOMMON_NAMES_H #define XKB_MOD_NAME_SHIFT "Shift" -#define XKB_MOD_NAME_CAPS "Caps Lock" +#define XKB_MOD_NAME_CAPS "Lock" #define XKB_MOD_NAME_CTRL "Control" #define XKB_MOD_NAME_ALT "Mod1" #define XKB_MOD_NAME_LOGO "Mod4" |