1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-02 03:28:28 -04:00

fix(International keyboards): update key mapping w/symbolic & shifted fallback support

- Fixes #2497
This commit is contained in:
purian23
2026-07-04 01:13:49 -04:00
parent b34941e3b8
commit da44e07cf7
2 changed files with 57 additions and 23 deletions
+2 -1
View File
@@ -725,10 +725,11 @@ Item {
if (!mods.includes("Shift"))
mods.push("Shift");
}
const hasShift = mods.includes("Shift");
if (KeybindsService.currentProvider === "niri")
mods = KeyUtils.withSymbolicMod(mods, KeybindsService.modKey);
const key = KeyUtils.xkbKeyFromQtKey(qtKey, !!(event.modifiers & Qt.KeypadModifier));
const key = KeyUtils.xkbKeyFromQtKey(qtKey, !!(event.modifiers & Qt.KeypadModifier), hasShift);
if (!key) {
log.warn("Unknown key:", event.key, "mods:", event.modifiers);
return;