-
Notifications
You must be signed in to change notification settings - Fork 1
Incorrect keyboard event key codes for the function and numpad keys #193
Comments
Comment by ibilon: In haxepunk we maintain a Map with code in native and their "real" flash value. Of course this is just a temp hack, unified key code for all openfl targets would be great. |
Comment by Gama11: That's clever... Mind if we steal that for HaxeFlixel? ;) |
Comment by ibilon: No problem ;) |
Comment by jgranick: If anyone wanted to attempt a pull request, this is a terrible difficult fix to do, its more a matter of testing it. There is an "SDLKeyToFlash" function in "/project/src/backend/sdl2/SDL2Stage.cpp" that handles the mapping for desktop targets. This is mostly a matter of taking the time to test and compare to ensure it looks consistent. Thanks! |
Comment by ibilon: I'll give it a try :) |
Comment by ibilon: I've made a pull request, Just a couple of things:
There was a lot of keys that should work on a qwerty keyboard but didn't on my azerty, |
Comment by Gama11: Things still seem to be broken on my qwertz keyboard. The only things that were fixed by this are pageup, pagedown and insert it seems. :/ So that means then ative key correction workaround is still required. |
Comment by ibilon: Did you use the second pull request, the one not yet merged? |
Comment by Gama11: I just used the current haxelib releases. Didn't release part of it has not been merged yet. |
#193 Issue by Gama11,
This issue has been around for quite a while. On native targets, the
KeyboardEvent
keycodes for numpad and function keys are inconsistent with their flash counterparts.KeyboardEvent.keyCode
F1
-F11
F12
0
-9
Numlock
/
*
-
+
Del
Pause
Scroll lock
Print Scrn
Obviously, this is quite problematic.
The text was updated successfully, but these errors were encountered: