Add escape to exit fullscreen in NW.js
This commit is contained in:
1 file changed
+4
@@ -581,6 +581,10 @@ class Packager extends EventTarget {
|
||||
policy.ignore();
|
||||
nw.Shell.openExternal(url);
|
||||
});
|
||||
nw.App.registerGlobalHotKey(new nw.Shortcut({
|
||||
key: "Escape",
|
||||
active: () => win.leaveFullscreen()
|
||||
}));
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
|
||||
Reference in new issue
Block a user