Add escape to exit fullscreen in NW.js

This commit is contained in:
Thomas Weber committed 2021-06-24 21:30:48 -05:00
1 parent 278f75ed4b
commit 955f22f54b
1 file changed
+4
+4
View File
@@ -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>