From 7148258b0102def134ecfa16266e4b7a3d8979c1 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Thu, 3 Apr 2025 15:35:21 +0200 Subject: [PATCH] ags user options: allow uppercase letter --- .config/ags/modules/.configuration/default_options.jsonc | 9 +++++---- .config/ags/modules/.widgetutils/keybind.js | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.config/ags/modules/.configuration/default_options.jsonc b/.config/ags/modules/.configuration/default_options.jsonc index d76705a7d..c1c7e1e08 100644 --- a/.config/ags/modules/.configuration/default_options.jsonc +++ b/.config/ags/modules/.configuration/default_options.jsonc @@ -204,9 +204,9 @@ // 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) "overview": { - "altMoveLeft": "Ctrl+b", - "altMoveRight": "Ctrl+f", - "deleteToEnd": "Ctrl+k" + "altMoveLeft": "Ctrl+B", + "altMoveRight": "Ctrl+F", + "deleteToEnd": "Ctrl+K" }, "sidebar": { "apis": { @@ -217,7 +217,8 @@ "nextTab": "Page_Down", "prevTab": "Page_Up" }, - "pin": "Ctrl+p", + "expand": "Ctrl+E", + "pin": "Ctrl+P", "cycleTab": "Ctrl+Tab", "nextTab": "Ctrl+Page_Down", "prevTab": "Ctrl+Page_Up" diff --git a/.config/ags/modules/.widgetutils/keybind.js b/.config/ags/modules/.widgetutils/keybind.js index eda7877bd..40ed9ac78 100644 --- a/.config/ags/modules/.widgetutils/keybind.js +++ b/.config/ags/modules/.widgetutils/keybind.js @@ -17,7 +17,7 @@ export const checkKeybind = (event, keybind) => { if (!(pressedModMask & MODS[keys[i]])) { return false; } - } else if (pressedKey !== Gdk[`KEY_${keys[i]}`]) { + } else if (pressedKey !== Gdk[`KEY_${keys[i]}`] && pressedKey !== Gdk[`KEY_${keys[i].toLowerCase()}`]) { return false; } }