diff --git a/vim_search_site.js b/vim_search_site.js index de448a1..46730c9 100644 --- a/vim_search_site.js +++ b/vim_search_site.js @@ -15,6 +15,7 @@ function vimSiteSearch(searchID) { console.log('key press'); console.log(event.key == '/' && document.activeElement.tagName != 'INPUT'); if (event.key == '/' && document.activeElement.tagName != 'INPUT') { + SEARCH.select(); SEARCH.focus(); } }