summaryrefslogtreecommitdiff
path: root/platform/javascript
diff options
context:
space:
mode:
authorL. Krause <eska@eska.me>2017-04-29 04:42:32 +0200
committerL. Krause <eska@eska.me>2017-04-29 04:42:50 +0200
commitabe09919bf5664353bea904116c6bc5bb856cd7f (patch)
tree57ca74c3b958ab68acbcb49f794360bd230faf50 /platform/javascript
parent65c5dde560961ba8af96caebf748d45f5c1a49c1 (diff)
Fix HTML5 key events
Regression from 86f5ac3
Diffstat (limited to 'platform/javascript')
-rw-r--r--platform/javascript/os_javascript.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/javascript/os_javascript.cpp b/platform/javascript/os_javascript.cpp
index 7d073654ce..e44f33f997 100644
--- a/platform/javascript/os_javascript.cpp
+++ b/platform/javascript/os_javascript.cpp
@@ -468,9 +468,9 @@ void OS_JavaScript::initialize(const VideoMode &p_desired, int p_video_driver, i
SET_EM_CALLBACK("#canvas", touchmove, _touchmove_callback)
SET_EM_CALLBACK("#canvas", touchend, _touchpress_callback)
SET_EM_CALLBACK("#canvas", touchcancel, _touchpress_callback)
- SET_EM_CALLBACK("#canvas", keydown, _keydown_callback)
- SET_EM_CALLBACK("#canvas", keypress, _keypress_callback)
- SET_EM_CALLBACK("#canvas", keyup, _keyup_callback)
+ SET_EM_CALLBACK(NULL, keydown, _keydown_callback)
+ SET_EM_CALLBACK(NULL, keypress, _keypress_callback)
+ SET_EM_CALLBACK(NULL, keyup, _keyup_callback)
SET_EM_CALLBACK(NULL, resize, _browser_resize_callback)
SET_EM_CALLBACK(NULL, fullscreenchange, _fullscreen_change_callback)
SET_EM_CALLBACK_NODATA(gamepadconnected, joy_callback_func)