mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
alt-left and alt-right navigation also for electron
This commit is contained in:
parent
eddb3ed58a
commit
bb2f47deb2
@ -678,6 +678,20 @@ const noteTree = (function() {
|
|||||||
activateNode(notePath);
|
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 {
|
return {
|
||||||
reload,
|
reload,
|
||||||
collapseTree,
|
collapseTree,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user