aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2014-05-13 18:05:32 +0200
committerPacien TRAN-GIRARD2014-05-13 18:05:32 +0200
commit6b4f6c457631a71c9aff13b5a183b4ebdc81f57b (patch)
tree8a6840286882f827eeca586a6fcb54a3a3bd8f15
parent194dbb4a501f2912ac9f46e7e2cfc6e99e3c7246 (diff)
downloadio-slides-remote-6b4f6c457631a71c9aff13b5a183b4ebdc81f57b.tar.gz
Fix non-key code dispatch
-rw-r--r--js/slide-controller.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/slide-controller.js b/js/slide-controller.js
index 13faa93..416c17c 100644
--- a/js/slide-controller.js
+++ b/js/slide-controller.js
@@ -146,6 +146,10 @@
146 // } 146 // }
147 147
148 if ('keyCode' in data) { 148 if ('keyCode' in data) {
149 if (isNaN(data.keyCode)) {
150 return;
151 }
152
149 this.keyLock = data.keyCode; 153 this.keyLock = data.keyCode;
150 154
151 var evt = document.createEvent('Event'); 155 var evt = document.createEvent('Event');