X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=app%2FResources%2Fstatic%2Fthemes%2Fbaggy%2Fjs%2Fshortcuts%2Fmain.js;h=43ebf3be891e799408cf719845906e59a111be52;hb=64f81bc31699ed239e4becec1cfa7ebc0bef2b5a;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hpb=e042a5d78fc7676eb399f61d199e8ec0045fbd1f;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; + }); +});