File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
modules/ui/src/main/kotlin/org/polyfrost/oneconfig/api/ui/v1/keybind Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -87,16 +87,17 @@ object KeybindManager {
8787 try {
8888 if (char.isValid() && inputManager.mods <= 2 ) { // asm: only allow no mod or shift mod for char input
8989 if (down) inputManager.keyTyped(char.code)
90+ return
9091 }
9192 val mod = when (keyCode) {
9293 OmniKeys .KEY_LEFT_SHIFT .code -> KeyModifiers .LSHIFT
9394 OmniKeys .KEY_LEFT_CONTROL .code -> if (PolyUI .isOnMac) KeyModifiers .LMETA else KeyModifiers .LPRIMARY
94- // OmniKeys.KEY_LMENU -> KeyModifiers.LSECONDARY
95- // OmniKeys.KEY_LMETA -> if (PolyUI.isOnMac) KeyModifiers.LPRIMARY else KeyModifiers.LSECONDARY
95+ OmniKeys .KEY_LEFT_ALT .code -> KeyModifiers .LSECONDARY
96+ OmniKeys .KEY_LEFT_SUPER .code -> if (PolyUI .isOnMac) KeyModifiers .LPRIMARY else KeyModifiers .LSECONDARY
9697 OmniKeys .KEY_RIGHT_SHIFT .code -> KeyModifiers .RSHIFT
9798 OmniKeys .KEY_RIGHT_CONTROL .code -> if (PolyUI .isOnMac) KeyModifiers .RMETA else KeyModifiers .RPRIMARY
98- // OmniKeys.KEY_RIGHT_MENU -> KeyModifiers.RSECONDARY
99- // OmniKeys.KEY_RIGHT_META -> if (PolyUI.isOnMac) KeyModifiers.RPRIMARY else KeyModifiers.RSECONDARY
99+ OmniKeys .KEY_RIGHT_ALT .code -> KeyModifiers .RSECONDARY
100+ OmniKeys .KEY_RIGHT_SUPER .code -> if (PolyUI .isOnMac) KeyModifiers .RPRIMARY else KeyModifiers .RSECONDARY
100101 else -> null
101102 }
102103
You can’t perform that action at this time.
0 commit comments