aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXingxing Pan <forandom@gmail.com>2012-07-14 23:31:38 +0800
committerXingxing Pan <forandom@gmail.com>2012-07-14 23:31:38 +0800
commit83f62834f04ecefb375abf3f03729df327223942 (patch)
tree1431b0767dbd1587f6c3b93d0eb397dd8e4d5e36
parent1b15a1c44bc4631dc293834bd8f17f61155c3d03 (diff)
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 73848502..48e45f27 100644
--- a/src/library_sdl.js
+++ b/src/library_sdl.js
@@ -50,10 +50,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