Skip to content

Build your personal knowledge base with Trilium Notes

f11 can now toggle Trilium window to/from fullscreen

zadamc0496ebef3c0
diff --git a/src/public/javascripts/services/entrypoints.js b/src/public/javascripts/services/entrypoints.js
index 9fa6f8f2a8..30a663dfbb 100644
--- a/src/public/javascripts/services/entrypoints.js
+++ b/src/public/javascripts/services/entrypoints.js
@@ -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();