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() { resetTimeout = setTimeout(function() {
keys = ''; keys = '';
}, 1000); }, 1000);
if (Ox.contains(keyboardCallbacks[0], event) || ( if ((
keyboardCallbacks[0]
&& Ox.contains(keyboardCallbacks[0], event)
) || (
$element && keyboardCallbacks[$element.oxid] $element && keyboardCallbacks[$element.oxid]
&& Ox.contains(keyboardCallbacks[$element.oxid], event) && Ox.contains(keyboardCallbacks[$element.oxid], event)
)) { )) {