mirror of
https://github.com/zadam/trilium.git
synced 2025-06-05 17:38:47 +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?
|
||||
utils.bindShortcut("ctrl+shift+up", () => {
|
||||
const node = treeService.getActiveNode();
|
||||
|
Loading…
x
Reference in New Issue
Block a user