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
Showing
1 changed file
with
8 additions
and
0 deletions
... | @@ -98,7 +98,15 @@ | ... | @@ -98,7 +98,15 @@ |
98 | } | 98 | } |
99 | } | 99 | } |
100 | 100 | ||
101 | + function textFieldInput() { | ||
102 | + var t = d3.event.target.tagName.toLowerCase(); | ||
103 | + return t === 'input' || t === 'textarea'; | ||
104 | + } | ||
105 | + | ||
101 | function keyIn() { | 106 | function keyIn() { |
107 | + if (textFieldInput()) { | ||
108 | + return; | ||
109 | + } | ||
102 | var event = d3.event, | 110 | var event = d3.event, |
103 | keyCode = event.keyCode, | 111 | keyCode = event.keyCode, |
104 | key = whatKey(keyCode), | 112 | key = whatKey(keyCode), | ... | ... |
-
Please register or login to post a comment