From 73cac6c4dc1d14448dabc54d42ed923bf6d5ba8c Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Wed, 24 Sep 2014 18:39:02 +0200 Subject: [PATCH] fix keyboard handling in case input has focus --- source/Ox.UI/js/Core/Event.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Core/Event.js b/source/Ox.UI/js/Core/Event.js index 32cfd67e..b7fd97c5 100644 --- a/source/Ox.UI/js/Core/Event.js +++ b/source/Ox.UI/js/Core/Event.js @@ -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) {