mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-08-04 05:33:10 +00:00
fix(console) F10 -> TRA
This commit is contained in:
parent
a444b009c2
commit
ff3bed82b8
2 changed files with 20 additions and 40 deletions
|
|
@ -48,8 +48,10 @@ var CloudCmd, Util, DOM, $;
|
|||
|
||||
// Handle a command.
|
||||
var handler = function(command) {
|
||||
if (command)
|
||||
if (command) {
|
||||
Images.showLoad({ top:true });
|
||||
CloudCmd.Socket.send(command);
|
||||
}
|
||||
|
||||
jqconsole.Prompt(true, handler);
|
||||
};
|
||||
|
|
@ -89,14 +91,15 @@ var CloudCmd, Util, DOM, $;
|
|||
}
|
||||
|
||||
function listener(pEvent){
|
||||
var lF10 = Key.F10,
|
||||
var lTRA = Key.TRA,
|
||||
lESC = Key.ESC,
|
||||
lIsBind = Key.isBind(),
|
||||
lKey = pEvent.keyCode;
|
||||
|
||||
switch(lKey){
|
||||
case lF10:
|
||||
Console.show();
|
||||
case lTRA:
|
||||
if (lIsBind)
|
||||
Console.show();
|
||||
break;
|
||||
case lESC:
|
||||
Console.hide();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue