diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-11-02 16:44:20 +0100 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2016-11-15 21:54:50 +0100 |
commit | 16ef7607f43ebc3e0134360b7657af191e14fe12 (patch) | |
tree | 81cdc13b1b626e313a51119847c5b7c603ca5fba /app/Resources/static/themes/_global/js/shortcuts/main.js | |
parent | af61cb80eb600618df95a01a15a08e87fc878c2a (diff) | |
download | wallabag-16ef7607f43ebc3e0134360b7657af191e14fe12.tar.gz wallabag-16ef7607f43ebc3e0134360b7657af191e14fe12.tar.zst wallabag-16ef7607f43ebc3e0134360b7657af191e14fe12.zip |
Reorganized JS folders for shortcuts
Diffstat (limited to 'app/Resources/static/themes/_global/js/shortcuts/main.js')
-rw-r--r-- | app/Resources/static/themes/_global/js/shortcuts/main.js | 13 |
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 */ | ||
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'); }); | ||