]>
git.immae.eu Git - github/wallabag/wallabag.git/blob - app/Resources/static/themes/material/js/shortcuts/entry.js
1 import Mousetrap
from 'mousetrap';
2 import $ from 'jquery';
4 $(document
).ready(() => {
5 if ($('#article').length
> 0) {
6 /* open original article */
7 Mousetrap
.bind('o', () => {
8 $('ul.side-nav a.original i')[0].click();
11 /* mark as favorite */
12 Mousetrap
.bind('f', () => {
13 $('ul.side-nav a.favorite i')[0].click();
17 Mousetrap
.bind('a', () => {
18 $('ul.side-nav a.markasread i')[0].click();
22 Mousetrap
.bind('del', () => {
23 $('ul.side-nav a.delete i')[0].click();