aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-07-17 11:10:54 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-07-17 11:10:54 -0700
commit064f18c96a8c0d1584ffad4a405c2041e328ec06 (patch)
tree781b1612f953e9874a74c865ed71c20dbf204851
parentbeb06f8ff9ac5e7707188a46a81c7f7b1c72f7f0 (diff)
parent83f62834f04ecefb375abf3f03729df327223942 (diff)
Merge pull request #511 from forandom/keycode
Fix keyCodes for ctrl, alt, shift
-rw-r--r--AUTHORS1
-rw-r--r--src/library_sdl.js6
2 files changed, 4 insertions, 3 deletions
diff --git a/AUTHORS b/AUTHORS
index 866bc0c3..c8f7d02a 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -26,4 +26,5 @@ under the licensing terms detailed in LICENSE.
* Chad Austin <chad@chadaustin.me>
* nandhp <nandhp@gmail.com>
* YeZhongWen <linghuye2.0@gmail.com>
+* Xingxing Pan <forandom@gmail.com>
diff --git a/src/library_sdl.js b/src/library_sdl.js
index c7d91be5..662620d6 100644
--- a/src/library_sdl.js
+++ b/src/library_sdl.js
@@ -53,10 +53,10 @@ var LibrarySDL = {
33: 1099, // pagedup
34: 1102, // pagedown
- 17: 305, // control (right, or left)
- 18: 308, // alt
+ 17: 1248, // control (right, or left)
+ 18: 1250, // alt
173: 45, // minus
- 16: 304, // shift
+ 16: 1249, // shift
96: 88 | 1<<10, // keypad 0
97: 89 | 1<<10, // keypad 1