diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-01-04 22:39:21 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-01-04 22:39:21 -0300 |
commit | 1ff0d5c4e57538463081c774dc40a6f8323e6cb9 (patch) | |
tree | 26214b8c5ec2f55a2365f839f93699b681e3fc35 /platform/osx/os_osx.mm | |
parent | 8c4dd8de3919b789eac1a0f030563008bdcd44f5 (diff) |
-attempt to be friendlier on non english keyboards
Diffstat (limited to 'platform/osx/os_osx.mm')
-rw-r--r-- | platform/osx/os_osx.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index 643c287c95..1703ae4c49 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -694,7 +694,7 @@ static int translateKey(unsigned int key) ev.type=InputEvent::KEY; ev.key.pressed=true; ev.key.mod=translateFlags([event modifierFlags]); - ev.key.scancode = translateKey([event keyCode]); + ev.key.scancode = latin_keyboard_keycode_convert(translateKey([event keyCode])); ev.key.echo = [event isARepeat]; NSString* characters = [event characters]; @@ -740,7 +740,7 @@ static int translateKey(unsigned int key) ev.type=InputEvent::KEY; ev.key.pressed=false; ev.key.mod=translateFlags([event modifierFlags]); - ev.key.scancode = translateKey([event keyCode]); + ev.key.scancode = latin_keyboard_keycode_convert(translateKey([event keyCode])); OS_OSX::singleton->push_input(ev); |