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

This commit is contained in:
juanmont authored and Tino Vázquez committed 2017-01-13 15:10:21 +01:00
1 parent fd8158f0cc
commit c24a822fc5
1 file changed
+9 -1
@@ -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() {