Add Web UI support for escape key

This commit is contained in:
Thomas Piccirello 2019-01-10 15:49:35 -08:00
parent 7e98035df5
commit 74a772aafb
11 changed files with 108 additions and 30 deletions

View file

@ -824,7 +824,7 @@ function setupCopyEventHandler() {
});
}
var keyboardEvents = new Keyboard({
new Keyboard({
defaultEventType: 'keydown',
events: {
'ctrl+a': function(event) {
@ -836,6 +836,4 @@ var keyboardEvents = new Keyboard({
event.preventDefault();
}
}
});
keyboardEvents.activate();
}).activate();