fixed the first show of menu in firefox

This commit is contained in:
coderaiser 2013-02-22 02:52:51 -05:00
parent 6147180900
commit 5f711a4e81
3 changed files with 9 additions and 3 deletions

View file

@ -164,6 +164,8 @@ for now it's much simplier.
* Fixed dblclick selection in firefox.
* Fixed the first show of menu in firefox.
2012.12.12, Version 0.1.8

View file

@ -427,8 +427,8 @@ CloudCmd._changeLinks = function(pPanelID){
if(Util.isFunction(CloudCmd.Menu) ){
CloudCmd.Menu({
x: pEvent.x,
y: pEvent.y
x: pEvent.clientX,
y: pEvent.clientY
});
/* disabling browsers menu*/

View file

@ -111,17 +111,21 @@ var CloudCommander, Util, DOM, $;
/* добавляем обработчик клавишь */
var lKeyHandler = function(pEvent){
var lKEY = CloudCmd.KEY,
var lRet = true,
lKEY = CloudCmd.KEY,
lKeyCode = pEvent.keyCode,
lKeyBinded = KeyBinding.get();
/* если клавиши можно обрабатывать */
if(Hidden && lKeyBinded && lKeyCode === lKEY.TRA){
JqueryTerminal.show();
pEvent.preventDefault();
lRet = false;
}
else if(!Hidden && lKeyCode === lKEY.ESC)
JqueryTerminal.hide();
return lRet;
};
DOM.addKeyListener(lKeyHandler);