alt-left and alt-right navigation also for electron

This commit is contained in:
azivner 2017-12-19 19:54:55 -05:00
parent eddb3ed58a
commit bb2f47deb2

View File

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