mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
f11 can now toggle Trilium window to/from fullscreen
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user