]>
Commit | Line | Data |
---|---|---|
1 | import Mousetrap from 'mousetrap'; | |
2 | import $ from 'jquery'; | |
3 | ||
4 | /* open original article */ | |
5 | Mousetrap.bind('o', () => { | |
6 | $('ul.side-nav li:nth-child(2) a i')[0].click(); | |
7 | }); | |
8 | ||
9 | /* mark as favorite */ | |
10 | Mousetrap.bind('s', () => { | |
11 | $('ul.side-nav li:nth-child(5) a i')[0].click(); | |
12 | }); | |
13 | ||
14 | /* mark as read */ | |
15 | Mousetrap.bind('a', () => { | |
16 | $('ul.side-nav li:nth-child(4) a i')[0].click(); | |
17 | }); | |
18 | ||
19 | /* delete */ | |
20 | Mousetrap.bind('del', () => { | |
21 | $('ul.side-nav li:nth-child(6) a i')[0].click(); | |
22 | }); |