feat(vinput): open the command palette with right Ctrl

Pin keyd's right-hand modifiers (rightcontrol/rightshift/rightmeta) to their own keycodes; keyd otherwise folds them into the left keys. Set Vinput's MenuKey to right Ctrl and clear CommandKeys, which would shadow it.
This commit is contained in:
Ryan Yin committed 2026-10-05 22:41:48 +08:00
1 parent 5e5707dd13
commit 8e3f12aa19
4 files changed
+33 -5

No files matched your search

+11
View File
@@ -64,6 +64,17 @@
# overloads the capslock key to function as both escape (when tapped) and control (when held)
capslock = "overload(control, esc)";
esc = "capslock";
# keyd rewrites right-hand modifiers as their left counterparts, so
# pin them to their own keycodes. Vinput's MenuKey is right Ctrl and
# Rime's right Shift switches CN/EN.
rightcontrol = "rightcontrol";
rightshift = "rightshift";
rightmeta = "rightmeta";
# Right Alt is AltGr, the third-level shift on many European layouts
# (e.g. `AltGr+2` is `@` in Spanish); keyd forwards it as-is.
rightalt = "layer(altgr)";
};
};
};