diff options
Diffstat (limited to 'app/Resources/static/themes/material/js/shortcuts/entry.js')
-rw-r--r-- | app/Resources/static/themes/material/js/shortcuts/entry.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/Resources/static/themes/material/js/shortcuts/entry.js b/app/Resources/static/themes/material/js/shortcuts/entry.js new file mode 100644 index 00000000..900a8214 --- /dev/null +++ b/app/Resources/static/themes/material/js/shortcuts/entry.js | |||
@@ -0,0 +1,19 @@ | |||
1 | /* open original article */ | ||
2 | Mousetrap.bind('o', () => { | ||
3 | $('ul.side-nav li:nth-child(2) a i')[0].click(); | ||
4 | }); | ||
5 | |||
6 | /* mark as favorite */ | ||
7 | Mousetrap.bind('s', () => { | ||
8 | $('ul.side-nav li:nth-child(5) a i')[0].click(); | ||
9 | }); | ||
10 | |||
11 | /* mark as read */ | ||
12 | Mousetrap.bind('a', () => { | ||
13 | $('ul.side-nav li:nth-child(4) a i')[0].click(); | ||
14 | }); | ||
15 | |||
16 | /* delete */ | ||
17 | Mousetrap.bind('del', () => { | ||
18 | $('ul.side-nav li:nth-child(6) a i')[0].click(); | ||
19 | }); | ||