aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-01-06 10:58:38 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-01-06 10:58:38 -0800
commitdd8b36bd9640522a597bc6aeebdfd7966e87cfa1 (patch)
treeb0b57922eea38f90b31a3113e0b0f6356019b12b
parent4f62d35360010a756f8a10e04e9b2a2525a7a2b8 (diff)
parenta885107df7e24ba2819da0e1198382a2ab7365ae (diff)
Merge pull request #1982 from floooh/incoming
Added missing Return and Tab keycode support to library_glut.js
-rw-r--r--AUTHORS1
-rw-r--r--src/library_glut.js2
2 files changed, 3 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS
index 6cf860ab..7e10ceab 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -114,3 +114,4 @@ a license to everyone to use it as detailed in LICENSE.)
* Vasilis Kalintiris <ehostunreach@gmail.com>
* Adam C. Clifton <adam@hulkamaniac.com>
* Volo Zyko <volo.zyko@gmail.com>
+* Andre Weissflog <floooh@gmail.com>
diff --git a/src/library_glut.js b/src/library_glut.js
index ba4d75ab..76a52b73 100644
--- a/src/library_glut.js
+++ b/src/library_glut.js
@@ -126,6 +126,8 @@ var LibraryGLUT = {
return keycode - 106 + 42; // *,+-./ TODO handle shift?
switch (keycode) {
+ case 9: // tab key
+ case 13: // return key
case 27: // escape
case 32: // space
case 61: // equal