Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
Mac uses CMD+Left, CMD+Right for history navigation, closes #376
azivner4d0e46021b95
diff --git a/src/public/javascripts/services/entrypoints.js b/src/public/javascripts/services/entrypoints.jsindex dfbb49f913..4cba5ae836 100644--- a/src/public/javascripts/services/entrypoints.js+++ b/src/public/javascripts/services/entrypoints.js@@ -61,8 +61,15 @@ function registerEntrypoints() {$("#history-back-button").click(window.history.back);$("#history-forward-button").click(window.history.forward);- utils.bindShortcut('alt+left', window.history.back);- utils.bindShortcut('alt+right', window.history.forward);+ if (utils.isMac()) {+ // Mac has a different history navigation shortcuts - https://github.com/zadam/trilium/issues/376+ utils.bindShortcut('meta+left', window.history.back);+ utils.bindShortcut('meta+right', window.history.forward);+ }+ else {+ utils.bindShortcut('alt+left', window.history.back);+ utils.bindShortcut('alt+right', window.history.forward);+ }}utils.bindShortcut('alt+m', e => {