f11 can now toggle Trilium window to/from fullscreen

pull/255/head
zadam 2019-04-28 21:52:25 +07:00
parent 6aa30a4c74
commit c0496ebef3
1 changed files with 12 additions and 0 deletions

@ -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();