Update virtual-keyboard.tsx

This commit is contained in:
Alexander-Ger-Reich
2025-09-14 18:25:08 +02:00
committed by GitHub
parent 6ca0fa7626
commit e86d385521

View File

@@ -133,10 +133,9 @@ export const VirtualKeyboard = () => {
}
if (keyboardLanguage === 'de' && key.endsWith('_qwertz')) {
const base = key.replace('_qwertz', '');
// Y ↔ Z Tausch
// Tausch
if (base === 'KeyZ') return KeyboardCodes.get('KeyY');
if (base === 'KeyY') return KeyboardCodes.get('KeyZ');
if (base === 'KeyUE') return KeyboardCodes.get('KeyBracketLeft');
// all other labels use their own code
return KeyboardCodes.get(base);