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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user