mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 17:04:16 +00:00
feature(index) add "~ - console" button
This commit is contained in:
parent
d7875f7006
commit
d2c18aa98a
4 changed files with 12 additions and 4 deletions
|
|
@ -237,17 +237,21 @@ var Util, DOM, CloudFunc, CloudCmd;
|
|||
];
|
||||
|
||||
for (i = 1; i <= 8; i++) {
|
||||
lButton = 'f' + i,
|
||||
lEl = DOM.getById('f' + i);
|
||||
lButton = 'f' + i,
|
||||
lEl = DOM.getById('f' + i);
|
||||
lKeysPanel[lButton] = lEl;
|
||||
|
||||
if( i === 1 || i === 3 || i === 4)
|
||||
Events.addOneTime('click', lFuncs[i], lEl);
|
||||
else
|
||||
Events.addClick(lFuncs[i], lEl);
|
||||
|
||||
lKeysPanel[lButton] = lEl;
|
||||
}
|
||||
|
||||
lButton = '~',
|
||||
lEl = DOM.getById('~');
|
||||
lKeysPanel[lButton] = lEl;
|
||||
Events.addOneTime('click', CloudCmd.Console, lEl);
|
||||
|
||||
CloudCmd.KeysPanel = lKeysPanel;
|
||||
Util.exec(pCallBack);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ var CloudCmd, Util, DOM, $;
|
|||
]);
|
||||
|
||||
DOM.Events.addKey(listener);
|
||||
DOM.setButtonKey('~', Console.show);
|
||||
|
||||
delete Console.init;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue