]>
Commit | Line | Data |
---|---|---|
1 | /** Shortcuts **/ | |
2 | ||
3 | /* Go to */ | |
4 | Mousetrap.bind('g u', () => { window.location.href = Routing.generate('homepage'); }); | |
5 | Mousetrap.bind('g s', () => { window.location.href = Routing.generate('starred'); }); | |
6 | Mousetrap.bind('g r', () => { window.location.href = Routing.generate('archive'); }); | |
7 | Mousetrap.bind('g a', () => { window.location.href = Routing.generate('all'); }); | |
8 | Mousetrap.bind('g t', () => { window.location.href = Routing.generate('tag'); }); | |
9 | Mousetrap.bind('g c', () => { window.location.href = Routing.generate('config'); }); | |
10 | Mousetrap.bind('g i', () => { window.location.href = Routing.generate('import'); }); | |
11 | Mousetrap.bind('g d', () => { window.location.href = Routing.generate('developer'); }); | |
12 | Mousetrap.bind('?', () => { window.location.href = Routing.generate('howto'); }); | |
13 | Mousetrap.bind('g l', () => { window.location.href = Routing.generate('logout'); }); |