diff --git a/resources/cider-ui/index.js b/resources/cider-ui/index.js index 457c3d37..82f6e02f 100644 --- a/resources/cider-ui/index.js +++ b/resources/cider-ui/index.js @@ -1817,6 +1817,15 @@ const app = new Vue({ } } }) + +// Key binds +document.addEventListener('keydown', function (e) { + if (e.keyCode === 70 && e.ctrlKey) { + app.$refs.searchInput.focus() + app.$refs.searchInput.select() + } +}); + // Hang Timer app.hangtimer = setTimeout(()=>{ if(confirm("Cider is not responding. Reload the app?")) { diff --git a/resources/cider-ui/views/main.ejs b/resources/cider-ui/views/main.ejs index f2f6576a..ebf26982 100644 --- a/resources/cider-ui/views/main.ejs +++ b/resources/cider-ui/views/main.ejs @@ -142,6 +142,7 @@ v-on:keyup.enter="searchQuery();search.showHints = false" @change="showSearch();" @input="getSearchHints()" placeholder="Search..." v-model="search.term" + ref="searchInput" class="search-input">