fix keyboard handling in case input has focus

This commit is contained in:
rlx 2014-09-24 18:39:02 +02:00
parent 3b8591c9a9
commit 73cac6c4dc

View file

@ -72,8 +72,10 @@
} }
function onKeydown(e) { function onKeydown(e) {
if (Ox.Focus.focusedElementIsInput()) {
return;
}
var $element = Ox.Focus.focusedElement(), var $element = Ox.Focus.focusedElement(),
isInput = Ox.Focus.focusedElementIsInput(),
keyName = Ox.KEYS[e.keyCode], keyName = Ox.KEYS[e.keyCode],
keyBasename = keyName.split('.')[0], keyBasename = keyName.split('.')[0],
key = Object.keys(Ox.MODIFIER_KEYS).filter(function(key) { key = Object.keys(Ox.MODIFIER_KEYS).filter(function(key) {