]> git.immae.eu Git - github/wallabag/wallabag.git/blame - app/Resources/static/themes/material/js/shortcuts/entry.js
Bring navigation (with right, left and enter) on material entries page. Supports...
[github/wallabag/wallabag.git] / app / Resources / static / themes / material / js / shortcuts / entry.js
CommitLineData
5637a26e
TC
1import Mousetrap from 'mousetrap';
2import $ from 'jquery';
3
16ef7607
NL
4/* open original article */
5Mousetrap.bind('o', () => {
5637a26e 6 $('ul.side-nav li:nth-child(2) a i')[0].click();
16ef7607
NL
7});
8
9/* mark as favorite */
10Mousetrap.bind('s', () => {
5637a26e 11 $('ul.side-nav li:nth-child(5) a i')[0].click();
16ef7607
NL
12});
13
14/* mark as read */
15Mousetrap.bind('a', () => {
5637a26e 16 $('ul.side-nav li:nth-child(4) a i')[0].click();
16ef7607
NL
17});
18
19/* delete */
20Mousetrap.bind('del', () => {
5637a26e 21 $('ul.side-nav li:nth-child(6) a i')[0].click();
16ef7607 22});