Commit 036776c 1 parent edd1e18 commit 036776c Copy full SHA for 036776c
File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 20
20
-->
21
21
22
22
<template>
23
- <Content :class="{ 'icon-loading': loading, 'in-call': isInCall }" app-name="Talk">
23
+ <Content
24
+ v-shortkey="['ctrl', 'f']"
25
+ :class="{ 'icon-loading': loading, 'in-call': isInCall }"
26
+ app-name="Talk"
27
+ @shortkey.native="handleAppSearch">
24
28
<LeftSidebar v-if="getUserId && !isFullscreen" />
25
29
<AppContent>
26
30
<router-view />
@@ -380,6 +384,10 @@ export default {
380
384
this.$store.dispatch('hideSidebar')
381
385
}
382
386
},
387
+ // Upon pressing ctrl+f, focus the search box in the left sidebar
388
+ handleAppSearch() {
389
+ document.querySelector('.conversations-search')[0].focus()
390
+ },
383
391
},
384
392
}
385
393
</script>
Original file line number Diff line number Diff line change 24
24
<div class="new-conversation">
25
25
<SearchBox
26
26
v-model="searchText"
27
+ class="conversations-search"
27
28
:is-searching="isSearching"
28
29
@input="debounceFetchSearchResults"
29
30
@abort-search="abortSearch" />
You can’t perform that action at this time.
0 commit comments