ONOS-3548: GUI - additional logical keys now recognized by KeyService.
Change-Id: I663c3fae9da3d13e6a94f22c2f10f07c04ac794b
Showing
1 changed file
with
6 additions
and
0 deletions
... | @@ -58,6 +58,8 @@ | ... | @@ -58,6 +58,8 @@ |
58 | 58 | ||
59 | function whatKey(code) { | 59 | function whatKey(code) { |
60 | switch (code) { | 60 | switch (code) { |
61 | + case 8: return 'delete'; | ||
62 | + case 9: return 'tab'; | ||
61 | case 13: return 'enter'; | 63 | case 13: return 'enter'; |
62 | case 16: return 'shift'; | 64 | case 16: return 'shift'; |
63 | case 17: return 'ctrl'; | 65 | case 17: return 'ctrl'; |
... | @@ -70,13 +72,17 @@ | ... | @@ -70,13 +72,17 @@ |
70 | case 40: return 'downArrow'; | 72 | case 40: return 'downArrow'; |
71 | case 91: return 'cmdLeft'; | 73 | case 91: return 'cmdLeft'; |
72 | case 93: return 'cmdRight'; | 74 | case 93: return 'cmdRight'; |
75 | + case 186: return 'semicolon'; | ||
73 | case 187: return 'equals'; | 76 | case 187: return 'equals'; |
74 | case 188: return 'comma'; | 77 | case 188: return 'comma'; |
75 | case 189: return 'dash'; | 78 | case 189: return 'dash'; |
76 | case 190: return 'dot'; | 79 | case 190: return 'dot'; |
77 | case 191: return 'slash'; | 80 | case 191: return 'slash'; |
78 | case 192: return 'backQuote'; | 81 | case 192: return 'backQuote'; |
82 | + case 219: return 'openBracket'; | ||
79 | case 220: return 'backSlash'; | 83 | case 220: return 'backSlash'; |
84 | + case 221: return 'closeBracket'; | ||
85 | + case 222: return 'quote'; | ||
80 | default: | 86 | default: |
81 | if ((code >= 48 && code <= 57) || | 87 | if ((code >= 48 && code <= 57) || |
82 | (code >= 65 && code <= 90)) { | 88 | (code >= 65 && code <= 90)) { | ... | ... |
-
Please register or login to post a comment