mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-22 07:34:16 +00:00
minor changes
This commit is contained in:
parent
6b3579fa30
commit
06db780200
4 changed files with 6 additions and 9 deletions
|
|
@ -1346,9 +1346,7 @@ var CloudCmd, Util, DOM, CloudFunc;
|
|||
* @param pKey - 'f1'-'f10'
|
||||
*/
|
||||
this.setButtonKey = function(pKey, pFunc){
|
||||
Util.tryCatchLog(function(){
|
||||
CloudCmd.KeysPanel[pKey].onclick = pFunc;
|
||||
});
|
||||
Events.addClick(CloudCmd.KeysPanel[pKey], pFunc);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -209,8 +209,8 @@ var CloudCmd, Util, DOM, CodeMirror;
|
|||
};
|
||||
|
||||
/* добавляем обработчик клавишь */
|
||||
DOM .addKeyListener( lKeyListener )
|
||||
.setButtonKey('f4', CodeMirrorEditor.show);
|
||||
DOM.Events.add( lKeyListener );
|
||||
DOM.setButtonKey('f4', CodeMirrorEditor.show);
|
||||
};
|
||||
|
||||
CloudCmd.Editor.CodeMirror = CodeMirrorEditor;
|
||||
|
|
|
|||
|
|
@ -257,8 +257,7 @@ var CloudCmd, Util, DOM, CloudFunc, $;
|
|||
if(!MenuSeted){
|
||||
$.contextMenu(getConfig());
|
||||
MenuSeted = true;
|
||||
//DOM.addListener('mousedown', clickProcessing);
|
||||
DOM.addListener('mousemove', function(pEvent){
|
||||
DOM.Events.add('mousemove', function(pEvent){
|
||||
Position = {
|
||||
x : pEvent.clientX,
|
||||
y : pEvent.clientY
|
||||
|
|
|
|||
|
|
@ -153,8 +153,8 @@ var CloudCmd, Util, DOM, CloudFunc, $;
|
|||
};
|
||||
|
||||
/* добавляем обработчик клавишь */
|
||||
DOM .Events.addKey(lKeyListener)
|
||||
.setButtonKey('f3', lView);
|
||||
DOM.Events.addKey(lKeyListener)
|
||||
DOM.setButtonKey('f3', lView);
|
||||
};
|
||||
|
||||
CloudCmd.Viewer.FancyBox = FancyBox;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue