fix a bug in keyboard handler

This commit is contained in:
rlx 2014-09-25 19:41:46 +02:00
parent f2141d792d
commit ae8ee195a1

View file

@ -114,7 +114,10 @@
resetTimeout = setTimeout(function() {
keys = '';
}, 1000);
if (Ox.contains(keyboardCallbacks[0], event) || (
if ((
keyboardCallbacks[0]
&& Ox.contains(keyboardCallbacks[0], event)
) || (
$element && keyboardCallbacks[$element.oxid]
&& Ox.contains(keyboardCallbacks[$element.oxid], event)
)) {