alt-left and alt-right navigation also for electron

pull/255/head
azivner 2017-12-19 19:54:55 +07:00
parent eddb3ed58a
commit bb2f47deb2
1 changed files with 14 additions and 0 deletions

@ -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,