aboutsummaryrefslogtreecommitdiff
path: root/src/library_glut.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/library_glut.js')
-rw-r--r--src/library_glut.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/library_glut.js b/src/library_glut.js
index 76a52b73..65ac10c4 100644
--- a/src/library_glut.js
+++ b/src/library_glut.js
@@ -122,6 +122,8 @@ var LibraryGLUT = {
return keycode; // numeric TODO handle shift?
if (65 <= keycode && keycode <= 90)
return event['shiftKey'] ? keycode : keycode + 32;
+ if (96 <= keycode && keycode <= 105)
+ return keycode - 48; // numpad numbers
if (106 <= keycode && keycode <= 111)
return keycode - 106 + 42; // *,+-./ TODO handle shift?