Fan Cheng
Committed by Ray Milkey

[ONOS-4624]keybindings are not disabled when dialog panel is in use

add a condition judgment before do the keystroke bindings.

Change-Id: I85f2071b725e34b6c274800ffa934e060a855280
......@@ -98,7 +98,15 @@
}
}
function textFieldInput() {
var t = d3.event.target.tagName.toLowerCase();
return t === 'input' || t === 'textarea';
}
function keyIn() {
if (textFieldInput()) {
return;
}
var event = d3.event,
keyCode = event.keyCode,
key = whatKey(keyCode),
......