GUI - backslash '\' now toggles quick help in addition to slash '/'
Change-Id: Ibb2485215eb9fab63d45e106519166593a06da25
Showing
2 changed files
with
4 additions
and
0 deletions
... | @@ -98,6 +98,7 @@ | ... | @@ -98,6 +98,7 @@ |
98 | case 189: return 'dash'; | 98 | case 189: return 'dash'; |
99 | case 191: return 'slash'; | 99 | case 191: return 'slash'; |
100 | case 192: return 'backQuote'; | 100 | case 192: return 'backQuote'; |
101 | + case 220: return 'backSlash'; | ||
101 | default: | 102 | default: |
102 | if ((code >= 48 && code <= 57) || | 103 | if ((code >= 48 && code <= 57) || |
103 | (code >= 65 && code <= 90)) { | 104 | (code >= 65 && code <= 90)) { |
... | @@ -418,6 +419,7 @@ | ... | @@ -418,6 +419,7 @@ |
418 | function setupGlobalKeys() { | 419 | function setupGlobalKeys() { |
419 | keyHandler.globalKeys = { | 420 | keyHandler.globalKeys = { |
420 | slash: [quickHelp, 'Show / hide Quick Help'], | 421 | slash: [quickHelp, 'Show / hide Quick Help'], |
422 | + backSlash: [quickHelp, 'Show / hide Quick Help'], | ||
421 | esc: [escapeKey, 'Dismiss dialog or cancel selections'], | 423 | esc: [escapeKey, 'Dismiss dialog or cancel selections'], |
422 | T: [toggleTheme, "Toggle theme"] | 424 | T: [toggleTheme, "Toggle theme"] |
423 | }; | 425 | }; |
... | @@ -425,6 +427,7 @@ | ... | @@ -425,6 +427,7 @@ |
425 | // That is, the view will never see the event for that key. | 427 | // That is, the view will never see the event for that key. |
426 | keyHandler.maskedKeys = { | 428 | keyHandler.maskedKeys = { |
427 | slash: true, | 429 | slash: true, |
430 | + backSlash: true, | ||
428 | T: true | 431 | T: true |
429 | }; | 432 | }; |
430 | } | 433 | } | ... | ... |
-
Please register or login to post a comment