Fix virtual code translation to text for dead keys on macOS

This commit is contained in:
kimci86 2022-12-20 22:41:36 +01:00 committed by Lukas Dürrenberger
parent 752955c6f8
commit 59a93ff737

View File

@ -866,7 +866,7 @@ void HIDInputManager::buildMappings()
// Use current layout for translation
OSStatus error = UCKeyTranslate(
layout, virtualCode, kUCKeyActionDown, modifiers, LMGetKbdType(),
kUCKeyTranslateNoDeadKeysBit, &deadKeyState, MAX_LENGTH, &length, string
kUCKeyTranslateNoDeadKeysMask, &deadKeyState, MAX_LENGTH, &length, string
);
if (error != noErr)