fix: the IntlBackslash key does not work on German virtual keyboard

This commit is contained in:
wj-xiao
2026-01-14 17:35:15 +08:00
parent 195037af87
commit b8d980be33
2 changed files with 5 additions and 6 deletions

View File

@@ -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);
}

View File

@@ -79,11 +79,11 @@ export const keyboardOptions = {
KeyY_qwertz: 'Y',
KeyZ_qwertz: 'Z',
KeyQ_qwertz: 'Q<br/>@',
KeyE_qwertz: 'E<br/>€',
BracketRight_qwertz: '+~*',
Backslash_qwertz: '#<br/>\'',
Backslash_qwertz: "#<br/>'",
IntlBackslash_qwertz: '<|>',
Comma_qwertz: ',<br/>;',
Period_qwertz: '.<br/>:',
@@ -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}',