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:
parent
fd8158f0cc
commit
c24a822fc5
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user