aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AUTHORS1
-rw-r--r--src/library_glfw.js2
2 files changed, 2 insertions, 1 deletions
diff --git a/AUTHORS b/AUTHORS
index 91e24da4..03abe143 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -131,4 +131,5 @@ a license to everyone to use it as detailed in LICENSE.)
* Bernhard Fey <e-male@web.de>
* Dave Nicponski <dave.nicponski@gmail.com>
* Jonathan Jarri <noxalus@gmail.com>
+* Daniele Di Proietto <daniele.di.proietto@gmail.com>
diff --git a/src/library_glfw.js b/src/library_glfw.js
index b54205ad..e5782900 100644
--- a/src/library_glfw.js
+++ b/src/library_glfw.js
@@ -51,7 +51,7 @@ var LibraryGLFW = {
DOMToGLFWKeyCode: function(keycode) {
switch (keycode) {
case 0x09: return 295 ; //DOM_VK_TAB -> GLFW_KEY_TAB
- case 0x1B: return 255 ; //DOM_VK_ESCAPE -> GLFW_KEY_ESC
+ case 0x1B: return 257 ; //DOM_VK_ESCAPE -> GLFW_KEY_ESC
case 0x6A: return 313 ; //DOM_VK_MULTIPLY -> GLFW_KEY_KP_MULTIPLY
case 0x6B: return 315 ; //DOM_VK_ADD -> GLFW_KEY_KP_ADD
case 0x6D: return 314 ; //DOM_VK_SUBTRACT -> GLFW_KEY_KP_SUBTRACT