mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
feature(key) add help call on "?"
This commit is contained in:
parent
535ca32750
commit
24bea9682d
1 changed files with 8 additions and 0 deletions
|
|
@ -49,6 +49,7 @@ var CloudCmd, Util, DOM;
|
|||
F9 : 120,
|
||||
F10 : 121,
|
||||
|
||||
SLASH : 191,
|
||||
TRA : 192 /* Typewritten Reverse Apostrophe (`) */
|
||||
};
|
||||
|
||||
|
|
@ -221,6 +222,13 @@ var CloudCmd, Util, DOM;
|
|||
DOM.shrinkSelection();
|
||||
break;
|
||||
|
||||
case Key.SLASH:
|
||||
if (lShift) {
|
||||
Util.exec(CloudCmd.Help.show);
|
||||
DOM.preventDefault(pEvent);
|
||||
}
|
||||
break;
|
||||
|
||||
case Key.F1:
|
||||
Util.exec(CloudCmd.Help.show);
|
||||
DOM.preventDefault(pEvent);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue