break;
/* We always have all the core modifiers (for now), plus any virtual
- * modifiers we may have defined, and then shift to one-based indexing. */
- return i + Mod5MapIndex + 1;
+ * modifiers we may have defined. */
+ return i + XkbNumModifiers;
}
/**
}
/* If that fails, try to find a virtual mod name. */
- return keymap->vmod_names[idx - Mod5MapIndex];
+ return keymap->vmod_names[idx - XkbNumModifiers];
}
/**
for (i = 0; i < XkbNumVirtualMods && keymap->vmod_names[i]; i++) {
if (istreq(name, keymap->vmod_names[i]))
- return i + Mod5MapIndex;
+ return i + XkbNumModifiers;
}
return XKB_GROUP_INVALID;