aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Resources/static/themes/_global/js/shortcuts/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/Resources/static/themes/_global/js/shortcuts/main.js')
-rw-r--r--app/Resources/static/themes/_global/js/shortcuts/main.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/Resources/static/themes/_global/js/shortcuts/main.js b/app/Resources/static/themes/_global/js/shortcuts/main.js
new file mode 100644
index 00000000..0bb962d0
--- /dev/null
+++ b/app/Resources/static/themes/_global/js/shortcuts/main.js
@@ -0,0 +1,13 @@
1/** Shortcuts **/
2
3/* Go to */
4Mousetrap.bind('g u', () => { window.location.href = Routing.generate('homepage'); });
5Mousetrap.bind('g s', () => { window.location.href = Routing.generate('starred'); });
6Mousetrap.bind('g r', () => { window.location.href = Routing.generate('archive'); });
7Mousetrap.bind('g a', () => { window.location.href = Routing.generate('all'); });
8Mousetrap.bind('g t', () => { window.location.href = Routing.generate('tag'); });
9Mousetrap.bind('g c', () => { window.location.href = Routing.generate('config'); });
10Mousetrap.bind('g i', () => { window.location.href = Routing.generate('import'); });
11Mousetrap.bind('g d', () => { window.location.href = Routing.generate('developer'); });
12Mousetrap.bind('?', () => { window.location.href = Routing.generate('howto'); });
13Mousetrap.bind('g l', () => { window.location.href = Routing.generate('logout'); });