From 59a93ff7379774627f96ac39936502714e1fcd38 Mon Sep 17 00:00:00 2001 From: kimci86 Date: Tue, 20 Dec 2022 22:41:36 +0100 Subject: [PATCH] Fix virtual code translation to text for dead keys on macOS --- src/SFML/Window/OSX/HIDInputManager.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Window/OSX/HIDInputManager.mm b/src/SFML/Window/OSX/HIDInputManager.mm index 8c2d7a01..72b44b51 100644 --- a/src/SFML/Window/OSX/HIDInputManager.mm +++ b/src/SFML/Window/OSX/HIDInputManager.mm @@ -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)