};
static const struct xkb_key_type canonicalTypes[XkbNumRequiredTypes] = {
- {
+ [XkbOneLevelIndex] = {
.mods = { .mask = 0, .vmods = 0, .real_mods = 0 },
.num_levels = 1,
.preserve = NULL,
.name = NULL,
.level_names = NULL
},
- {
+ [XkbTwoLevelIndex] = {
.mods = { .mask = ShiftMask, .vmods = ShiftMask, .real_mods = 0 },
.num_levels = 2,
.map = darray_lit(map2Level),
.name = NULL,
.level_names = NULL
},
- {
+ [XkbAlphabeticIndex] = {
.mods = {
.mask = ShiftMask | LockMask,
.vmods = ShiftMask | LockMask,
.name = NULL,
.level_names = NULL
},
- {
+ [XkbKeypadIndex] = {
.mods = { .mask = ShiftMask, .vmods = ShiftMask, .real_mods = 0 },
.num_levels = 2,
.map = darray_lit(mapKeypad),