]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - 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
index 900a8214f99694f2363fc622e0bfd60cac92c437..674253b5cefe7c64a39ce174c4352cf159c7f98b 100644 (file)
@@ -1,19 +1,22 @@
+import Mousetrap from 'mousetrap';
+import $ from 'jquery';
+
 /* open original article */
 Mousetrap.bind('o', () => {
-    $('ul.side-nav li:nth-child(2) a i')[0].click();
+  $('ul.side-nav li:nth-child(2) a i')[0].click();
 });
 
 /* mark as favorite */
 Mousetrap.bind('s', () => {
-    $('ul.side-nav li:nth-child(5) a i')[0].click();
+  $('ul.side-nav li:nth-child(5) a i')[0].click();
 });
 
 /* mark as read */
 Mousetrap.bind('a', () => {
-    $('ul.side-nav li:nth-child(4) a i')[0].click();
+  $('ul.side-nav li:nth-child(4) a i')[0].click();
 });
 
 /* delete */
 Mousetrap.bind('del', () => {
-    $('ul.side-nav li:nth-child(6) a i')[0].click();
+  $('ul.side-nav li:nth-child(6) a i')[0].click();
 });