Simon Hunt

GUI - backslash '\' now toggles quick help in addition to slash '/'

Change-Id: Ibb2485215eb9fab63d45e106519166593a06da25
...@@ -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 }
......
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
55 equals: '=', 55 equals: '=',
56 dash: '-', 56 dash: '-',
57 slash: '/', 57 slash: '/',
58 + backSlash: '\\',
58 backQuote: '`', 59 backQuote: '`',
59 leftArrow: 'L-arrow', 60 leftArrow: 'L-arrow',
60 upArrow: 'U-arrow', 61 upArrow: 'U-arrow',
......