summaryrefslogtreecommitdiff
path: root/platform/javascript/dom_keys.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/javascript/dom_keys.h')
-rw-r--r--platform/javascript/dom_keys.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/javascript/dom_keys.h b/platform/javascript/dom_keys.h
index 979731d157..4b8b764c45 100644
--- a/platform/javascript/dom_keys.h
+++ b/platform/javascript/dom_keys.h
@@ -249,7 +249,7 @@ int dom2godot_scancode(int dom_keycode) {
case DOM_VK_RETURN:
case DOM_VK_ENTER: // unused according to MDN
- return KEY_RETURN;
+ return KEY_ENTER;
case DOM_VK_SHIFT: return KEY_SHIFT;
case DOM_VK_CONTROL: return KEY_CONTROL;