fix(menu) hide on Esc

This commit is contained in:
coderaiser 2014-05-23 04:24:36 -04:00
parent 5654d17332
commit 0d9fb99e2c

View file

@ -32,6 +32,7 @@ var CloudCmd, Util, DOM, CloudFunc, MenuIO;
this.hide = function() {
MenuContext.hide();
MenuContextFile.hide();
};
this.show = function(x, y ) {
@ -243,7 +244,7 @@ var CloudCmd, Util, DOM, CloudFunc, MenuIO;
DOM.preventDefault(event);
} else if (key === ESC) {
MenuContext.hide();
Menu.hide();
}
}