mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
f11 can now toggle Trilium window to/from fullscreen
This commit is contained in:
parent
6aa30a4c74
commit
c0496ebef3
@ -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?
|
// FIXME: do we really need these at this point?
|
||||||
utils.bindShortcut("ctrl+shift+up", () => {
|
utils.bindShortcut("ctrl+shift+up", () => {
|
||||||
const node = treeService.getActiveNode();
|
const node = treeService.getActiveNode();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user