ags user options: allow uppercase letter

This commit is contained in:
end-4
2025-04-03 15:35:21 +02:00
parent 5ae2ef9b2b
commit 7148258b01
2 changed files with 6 additions and 5 deletions
@@ -204,9 +204,9 @@
// Modifiers: Shift Ctrl Alt Hyper Meta // Modifiers: Shift Ctrl Alt Hyper Meta
// See https://docs.gtk.org/gdk3/index.html#constants for the other keys (they are listed as KEY_key) // See https://docs.gtk.org/gdk3/index.html#constants for the other keys (they are listed as KEY_key)
"overview": { "overview": {
"altMoveLeft": "Ctrl+b", "altMoveLeft": "Ctrl+B",
"altMoveRight": "Ctrl+f", "altMoveRight": "Ctrl+F",
"deleteToEnd": "Ctrl+k" "deleteToEnd": "Ctrl+K"
}, },
"sidebar": { "sidebar": {
"apis": { "apis": {
@@ -217,7 +217,8 @@
"nextTab": "Page_Down", "nextTab": "Page_Down",
"prevTab": "Page_Up" "prevTab": "Page_Up"
}, },
"pin": "Ctrl+p", "expand": "Ctrl+E",
"pin": "Ctrl+P",
"cycleTab": "Ctrl+Tab", "cycleTab": "Ctrl+Tab",
"nextTab": "Ctrl+Page_Down", "nextTab": "Ctrl+Page_Down",
"prevTab": "Ctrl+Page_Up" "prevTab": "Ctrl+Page_Up"
+1 -1
View File
@@ -17,7 +17,7 @@ export const checkKeybind = (event, keybind) => {
if (!(pressedModMask & MODS[keys[i]])) { if (!(pressedModMask & MODS[keys[i]])) {
return false; return false;
} }
} else if (pressedKey !== Gdk[`KEY_${keys[i]}`]) { } else if (pressedKey !== Gdk[`KEY_${keys[i]}`] && pressedKey !== Gdk[`KEY_${keys[i].toLowerCase()}`]) {
return false; return false;
} }
} }