Skip to content

Commit

Permalink
Add search shortcut support
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
  • Loading branch information
marcoambrosini committed Apr 3, 2020
1 parent edd1e18 commit ce36de7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
-->

<template>
<Content :class="{ 'icon-loading': loading, 'in-call': isInCall }" app-name="Talk">
<Content
v-shortkey="['ctrl', 'f']"
:class="{ 'icon-loading': loading, 'in-call': isInCall }"
app-name="Talk"
@shortkey="handleSearch">
<LeftSidebar v-if="getUserId && !isFullscreen" />
<AppContent>
<router-view />
Expand Down Expand Up @@ -380,6 +384,9 @@ export default {
this.$store.dispatch('hideSidebar')
}
},
handleSearch() {
debugger
},
},
}
</script>
Expand Down

0 comments on commit ce36de7

Please sign in to comment.