diff options
Diffstat (limited to 'app/Resources/static/themes/baggy/js/shortcuts')
-rw-r--r-- | app/Resources/static/themes/baggy/js/shortcuts/entry.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/app/Resources/static/themes/baggy/js/shortcuts/entry.js b/app/Resources/static/themes/baggy/js/shortcuts/entry.js index d618f28e..77d267a3 100644 --- a/app/Resources/static/themes/baggy/js/shortcuts/entry.js +++ b/app/Resources/static/themes/baggy/js/shortcuts/entry.js | |||
@@ -1,19 +1,22 @@ | |||
1 | import Mousetrap from 'mousetrap'; | ||
2 | import $ from 'jquery'; | ||
3 | |||
1 | /* Article view */ | 4 | /* Article view */ |
2 | Mousetrap.bind('o', () => { | 5 | Mousetrap.bind('o', () => { |
3 | $('div#article_toolbar ul.links li:nth-child(2) a')[0].click(); | 6 | $('div#article_toolbar ul.links li:nth-child(2) a')[0].click(); |
4 | }); | 7 | }); |
5 | 8 | ||
6 | /* mark as favorite */ | 9 | /* mark as favorite */ |
7 | Mousetrap.bind('s', () => { | 10 | Mousetrap.bind('s', () => { |
8 | $('div#article_toolbar ul.links li:nth-child(5) a')[0].click(); | 11 | $('div#article_toolbar ul.links li:nth-child(5) a')[0].click(); |
9 | }); | 12 | }); |
10 | 13 | ||
11 | /* mark as read */ | 14 | /* mark as read */ |
12 | Mousetrap.bind('a', () => { | 15 | Mousetrap.bind('a', () => { |
13 | $('div#article_toolbar ul.links li:nth-child(4) a')[0].click(); | 16 | $('div#article_toolbar ul.links li:nth-child(4) a')[0].click(); |
14 | }); | 17 | }); |
15 | 18 | ||
16 | /* delete */ | 19 | /* delete */ |
17 | Mousetrap.bind('del', () => { | 20 | Mousetrap.bind('del', () => { |
18 | $('div#article_toolbar ul.links li:nth-child(7) a')[0].click(); | 21 | $('div#article_toolbar ul.links li:nth-child(7) a')[0].click(); |
19 | }); | 22 | }); |