mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 13:50:42 +08:00
alt-left and alt-right navigation also for electron
This commit is contained in:
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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue