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