fix keyboard handling in case input has focus
This commit is contained in:
parent
3b8591c9a9
commit
73cac6c4dc
1 changed files with 3 additions and 1 deletions
|
@ -72,8 +72,10 @@
|
|||
}
|
||||
|
||||
function onKeydown(e) {
|
||||
if (Ox.Focus.focusedElementIsInput()) {
|
||||
return;
|
||||
}
|
||||
var $element = Ox.Focus.focusedElement(),
|
||||
isInput = Ox.Focus.focusedElementIsInput(),
|
||||
keyName = Ox.KEYS[e.keyCode],
|
||||
keyBasename = keyName.split('.')[0],
|
||||
key = Object.keys(Ox.MODIFIER_KEYS).filter(function(key) {
|
||||
|
|
Loading…
Reference in a new issue