From b8d980be33ab76a655e0e116aee1bfcf4500168e Mon Sep 17 00:00:00 2001 From: wj-xiao Date: Wed, 14 Jan 2026 17:35:15 +0800 Subject: [PATCH] fix: the IntlBackslash key does not work on German virtual keyboard --- web/src/pages/desktop/virtual-keyboard/index.tsx | 1 - web/src/pages/desktop/virtual-keyboard/virtual-keys.ts | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/web/src/pages/desktop/virtual-keyboard/index.tsx b/web/src/pages/desktop/virtual-keyboard/index.tsx index 15511e1..5503f41 100644 --- a/web/src/pages/desktop/virtual-keyboard/index.tsx +++ b/web/src/pages/desktop/virtual-keyboard/index.tsx @@ -137,7 +137,6 @@ export const VirtualKeyboard = () => { // Tausch if (base === 'KeyZ') return getKeycode('KeyY'); if (base === 'KeyY') return getKeycode('KeyZ'); - if (base === 'IntlBackslash') return getKeycode('IntlBackslash_qwertz'); // all other labels use their own code return getKeycode(base); } diff --git a/web/src/pages/desktop/virtual-keyboard/virtual-keys.ts b/web/src/pages/desktop/virtual-keyboard/virtual-keys.ts index cc1a233..84fb21a 100644 --- a/web/src/pages/desktop/virtual-keyboard/virtual-keys.ts +++ b/web/src/pages/desktop/virtual-keyboard/virtual-keys.ts @@ -79,11 +79,11 @@ export const keyboardOptions = { KeyY_qwertz: 'Y', KeyZ_qwertz: 'Z', - + KeyQ_qwertz: 'Q
@', KeyE_qwertz: 'E
€', BracketRight_qwertz: '+~*', - Backslash_qwertz: '#
\'', + Backslash_qwertz: "#
'", IntlBackslash_qwertz: '<|>', Comma_qwertz: ',
;', Period_qwertz: '.
:', @@ -91,11 +91,11 @@ export const keyboardOptions = { '{controlleft_qwertz}': 'STRG', '{altright_qwertz}': 'ALT GR', '{controlright_qwertz}': 'STRG', - + BracketLeft_qwertz: 'Ü', Semicolon_qwertz: 'Ö', Quote_qwertz: 'Ä', - + '{tab}': 'Tab', KeyQ: 'Q', KeyW: 'W', @@ -336,7 +336,7 @@ export const modifierKeys = [ '{altright}', '{metaright}', '{winright}', - + // DE-spezifische Modifier-Tokens (für qwertz-Layout) '{controlleft_qwertz}', '{controlright_qwertz}',