1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

Added posibility to press ESC in the noVNC Dialog (#181)

This commit is contained in:
juanmont 2017-01-13 15:10:21 +01:00 committed by Tino Vázquez
parent fd8158f0cc
commit c24a822fc5

View File

@ -53,6 +53,14 @@ define(function(require) {
that.show();
});
dialogElement.on('keydown', function(evt) {
if (evt.keyCode == 27 && dialogElement[0].id == "vncVMDialog") {
evt.keyCode = 0;
evt.key = "";
evt.which = 0;
}
});
that.dialogElement = dialogElement;
return that.dialogElement;
@ -64,7 +72,7 @@ define(function(require) {
}
function _hide() {
this.dialogElement.foundation('close');
this.dialogElement.foundation('close');
}
function _reset() {