diff --git a/public/javascripts/note_tree.js b/public/javascripts/note_tree.js index b6031678f..25a2f5007 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,