Skip to content

Build your personal knowledge base with Trilium Notes

alt-left and alt-right navigation also for electron

azivnerbb2f47deb2d2
diff --git a/public/javascripts/note_tree.js b/public/javascripts/note_tree.js
index b6031678f8..25a2f50075 100644
--- a/public/javascripts/note_tree.js
+++ b/public/javascripts/note_tree.js
@@ -678,6 +678,20 @@ const noteTree = (function() {
activateNode(notePath);
});
+ if (isElectron()) {
+ $(document).bind('keydown', 'alt+left', e => {
+ window.history.back();
+
+ e.preventDefault();
+ });
+
+ $(document).bind('keydown', 'alt+right', e => {
+ window.history.forward();
+
+ e.preventDefault();
+ });
+ }
+
return {
reload,
collapseTree,