mirror of
https://github.com/SFML/SFML.git
synced 2024-12-01 15:51:04 +08:00
Fix virtual code translation to text for dead keys on macOS
This commit is contained in:
parent
752955c6f8
commit
59a93ff737
@ -866,7 +866,7 @@ void HIDInputManager::buildMappings()
|
|||||||
// Use current layout for translation
|
// Use current layout for translation
|
||||||
OSStatus error = UCKeyTranslate(
|
OSStatus error = UCKeyTranslate(
|
||||||
layout, virtualCode, kUCKeyActionDown, modifiers, LMGetKbdType(),
|
layout, virtualCode, kUCKeyActionDown, modifiers, LMGetKbdType(),
|
||||||
kUCKeyTranslateNoDeadKeysBit, &deadKeyState, MAX_LENGTH, &length, string
|
kUCKeyTranslateNoDeadKeysMask, &deadKeyState, MAX_LENGTH, &length, string
|
||||||
);
|
);
|
||||||
|
|
||||||
if (error != noErr)
|
if (error != noErr)
|
||||||
|
Loading…
Reference in New Issue
Block a user