From 6b4f6c457631a71c9aff13b5a183b4ebdc81f57b Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Tue, 13 May 2014 18:05:32 +0200 Subject: Fix non-key code dispatch --- js/slide-controller.js | 4 ++++ 1 file changed, 4 insertions(+) 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 @@ // } if ('keyCode' in data) { + if (isNaN(data.keyCode)) { + return; + } + this.keyLock = data.keyCode; var evt = document.createEvent('Event'); -- cgit v1.2.3