Commit 14c7956
Ignore unknown keyCodes in library_sdl.js (emscripten-core#22920)
Prior to this change any unrecognized DOM keyCode would be directly
passed through with the DOM keyCode used as an SDL keycode.
This strange behavior is what allowed `test_sdl_key_proxy` to use SDL
key codes when generating new `KeyboardEvent`s. The number previously
hardcoded in the test (1248, 1249, 1250) correspond to (SDLK_LCTRL,
SDLK_LSHIFT, SDLK_LALT) but don't make any sense as DOM keyboard codes.1 parent 70e1808 commit 14c7956
3 files changed
+14
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
828 | 828 | | |
829 | 829 | | |
830 | 830 | | |
831 | | - | |
| 831 | + | |
832 | 832 | | |
833 | 833 | | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
834 | 838 | | |
835 | | - | |
| 839 | + | |
836 | 840 | | |
837 | | - | |
838 | 841 | | |
839 | 842 | | |
840 | 843 | | |
| |||
859 | 862 | | |
860 | 863 | | |
861 | 864 | | |
| 865 | + | |
| 866 | + | |
862 | 867 | | |
863 | 868 | | |
864 | 869 | | |
| |||
943 | 948 | | |
944 | 949 | | |
945 | 950 | | |
| 951 | + | |
| 952 | + | |
946 | 953 | | |
947 | 954 | | |
948 | 955 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
| 75 | + | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
990 | 990 | | |
991 | 991 | | |
992 | 992 | | |
993 | | - | |
994 | | - | |
| 993 | + | |
| 994 | + | |
995 | 995 | | |
996 | 996 | | |
997 | 997 | | |
| |||
0 commit comments