diff options
author | Pacien TRAN-GIRARD | 2014-05-13 18:05:32 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2014-05-13 18:05:32 +0200 |
commit | 6b4f6c457631a71c9aff13b5a183b4ebdc81f57b (patch) | |
tree | 8a6840286882f827eeca586a6fcb54a3a3bd8f15 /js | |
parent | 194dbb4a501f2912ac9f46e7e2cfc6e99e3c7246 (diff) | |
download | io-slides-remote-6b4f6c457631a71c9aff13b5a183b4ebdc81f57b.tar.gz |
Fix non-key code dispatch
Diffstat (limited to 'js')
-rw-r--r-- | js/slide-controller.js | 4 |
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'); |