mirror of
https://github.com/wallabag/wallabag.git
synced 2024-06-11 09:49:32 +00:00
5637a26e9a
Also better indentation for js files (changed editorconfig for them). Signed-off-by: Thomas Citharel <tcit@tcit.fr>
23 lines
531 B
JavaScript
23 lines
531 B
JavaScript
import Mousetrap from 'mousetrap';
|
|
import $ from 'jquery';
|
|
|
|
/* Article view */
|
|
Mousetrap.bind('o', () => {
|
|
$('div#article_toolbar ul.links li:nth-child(2) a')[0].click();
|
|
});
|
|
|
|
/* mark as favorite */
|
|
Mousetrap.bind('s', () => {
|
|
$('div#article_toolbar ul.links li:nth-child(5) a')[0].click();
|
|
});
|
|
|
|
/* mark as read */
|
|
Mousetrap.bind('a', () => {
|
|
$('div#article_toolbar ul.links li:nth-child(4) a')[0].click();
|
|
});
|
|
|
|
/* delete */
|
|
Mousetrap.bind('del', () => {
|
|
$('div#article_toolbar ul.links li:nth-child(7) a')[0].click();
|
|
});
|