minor changes

This commit is contained in:
coderaiser 2012-09-28 11:04:43 -04:00
parent 999962f5ee
commit f5bfccfc43
2 changed files with 62 additions and 62 deletions

View file

@ -194,18 +194,24 @@ var CloudCommander, CloudFunc, CodeMirror;
var lShow = Util.bind(lThis.show, lThis);
if(!pEvent.shiftKey){
if(pEvent.keyCode === lF4)
lShow();
else if(pEvent.keyCode === lF3){
lShow(true);
}
switch(pEvent.keyCode)
{
case lF4:
ReadOnly = false;
lShow();
break;
case lF3:
ReadOnly = true;
lShow();
break;
}
}
}
};
/* добавляем обработчик клавишь */
if (document.addEventListener)
document.addEventListener('keydown', key_event,false);
document.addEventListener('keydown', key_event, false);
else{
var lFunc;