f11 can now toggle Trilium window to/from fullscreen

This commit is contained in:
zadam 2019-04-28 21:52:25 +02:00
parent 6aa30a4c74
commit c0496ebef3

View File

@ -142,6 +142,18 @@ function registerEntrypoints() {
});
}
if (utils.isElectron()) {
utils.bindShortcut('f11', () => {
const win = require('electron').remote.getCurrentWindow();
if (win.isFullScreenable()) {
win.setFullScreen(!win.isFullScreen());
}
return false;
});
}
// FIXME: do we really need these at this point?
utils.bindShortcut("ctrl+shift+up", () => {
const node = treeService.getActiveNode();