]> git.immae.eu Git - github/wallabag/wallabag.git/blame - app/Resources/static/themes/_global/js/shortcuts/main.js
Bring navigation (with right, left and enter) on material entries page. Supports...
[github/wallabag/wallabag.git] / app / Resources / static / themes / _global / js / shortcuts / main.js
CommitLineData
5637a26e
TC
1import Mousetrap from 'mousetrap';
2
3
16ef7607
NL
4/** Shortcuts **/
5
6/* Go to */
7Mousetrap.bind('g u', () => { window.location.href = Routing.generate('homepage'); });
8Mousetrap.bind('g s', () => { window.location.href = Routing.generate('starred'); });
9Mousetrap.bind('g r', () => { window.location.href = Routing.generate('archive'); });
10Mousetrap.bind('g a', () => { window.location.href = Routing.generate('all'); });
11Mousetrap.bind('g t', () => { window.location.href = Routing.generate('tag'); });
12Mousetrap.bind('g c', () => { window.location.href = Routing.generate('config'); });
13Mousetrap.bind('g i', () => { window.location.href = Routing.generate('import'); });
14Mousetrap.bind('g d', () => { window.location.href = Routing.generate('developer'); });
15Mousetrap.bind('?', () => { window.location.href = Routing.generate('howto'); });
16Mousetrap.bind('g l', () => { window.location.href = Routing.generate('logout'); });