mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 09:24:51 +00:00
minor changes
This commit is contained in:
parent
9fadbd0828
commit
7f345951d3
1 changed files with 19 additions and 0 deletions
19
client.js
19
client.js
|
|
@ -261,6 +261,25 @@ CloudClient._setCurrent=(function(){
|
|||
if (lA.length){
|
||||
lA[0].contentEditable = true;
|
||||
CloudCommander.keyBinded = false;
|
||||
|
||||
var lDocumentOnclick = document.onclick;
|
||||
|
||||
/* setting event handler onclick
|
||||
* if user clicks somewhere keyBinded
|
||||
* backs
|
||||
*/
|
||||
document.onclick = (function(){
|
||||
CloudCommander.keyBinded = true;
|
||||
|
||||
/* backs old document.onclick
|
||||
* and call it if it was
|
||||
* setted up earlier
|
||||
*/
|
||||
document.onclick = lDocumentOnclick;
|
||||
if(typeof lDocumentOnclick === 'function')
|
||||
lDocumentOnclick();
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
else{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue