aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Resources/static/themes/baggy/js/shortcuts/entry.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/Resources/static/themes/baggy/js/shortcuts/entry.js')
-rw-r--r--app/Resources/static/themes/baggy/js/shortcuts/entry.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/app/Resources/static/themes/baggy/js/shortcuts/entry.js b/app/Resources/static/themes/baggy/js/shortcuts/entry.js
new file mode 100644
index 00000000..d618f28e
--- /dev/null
+++ b/app/Resources/static/themes/baggy/js/shortcuts/entry.js
@@ -0,0 +1,19 @@
1/* Article view */
2Mousetrap.bind('o', () => {
3 $('div#article_toolbar ul.links li:nth-child(2) a')[0].click();
4});
5
6/* mark as favorite */
7Mousetrap.bind('s', () => {
8 $('div#article_toolbar ul.links li:nth-child(5) a')[0].click();
9});
10
11/* mark as read */
12Mousetrap.bind('a', () => {
13 $('div#article_toolbar ul.links li:nth-child(4) a')[0].click();
14});
15
16/* delete */
17Mousetrap.bind('del', () => {
18 $('div#article_toolbar ul.links li:nth-child(7) a')[0].click();
19});