]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - app/Resources/static/themes/baggy/js/shortcuts/main.js
Adds Webpack support and removes the use for Grunt
[github/wallabag/wallabag.git] / app / Resources / static / themes / baggy / js / shortcuts / main.js
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..43ebf3be891e799408cf719845906e59a111be52 100644 (file)
@@ -0,0 +1,10 @@
+import $ from 'jquery';
+import Mousetrap from 'mousetrap';
+
+$(document).ready(() => {
+  Mousetrap.bind('s', () => {
+    $('#search').trigger('click');
+    $('#search_entry_term').focus();
+    return false;
+  });
+});