X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=app%2FResources%2Fstatic%2Fthemes%2Fbaggy%2Fjs%2Fshortcuts%2Fmain.js;h=43ebf3be891e799408cf719845906e59a111be52;hb=refs%2Fpull%2F3077%2Fhead;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hpb=16ef7607f43ebc3e0134360b7657af191e14fe12;p=github%2Fwallabag%2Fwallabag.git diff --git a/app/Resources/static/themes/baggy/js/shortcuts/main.js b/app/Resources/static/themes/baggy/js/shortcuts/main.js index e69de29b..43ebf3be 100644 --- a/app/Resources/static/themes/baggy/js/shortcuts/main.js +++ b/app/Resources/static/themes/baggy/js/shortcuts/main.js @@ -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; + }); +});