Skip to content

Commit

Permalink
fix(ui): prevent from navigating to search page when opening command …
Browse files Browse the repository at this point in the history
…panel (#2719)
  • Loading branch information
lazzzis committed Mar 30, 2024
1 parent f6f50a5 commit 42aeb8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/magic-keys.client.ts
Expand Up @@ -49,7 +49,7 @@ export default defineNuxtPlugin(({ $scrollToTop }) => {
whenever(logicAnd(isAuthenticated, notUsingInput, useMagicSequence(['g', 'i'])), () => navigateTo('/lists'))
whenever(logicAnd(notUsingInput, useMagicSequence(['g', 's'])), () => navigateTo('/settings'))
whenever(logicAnd(isAuthenticated, notUsingInput, useMagicSequence(['g', 'p'])), () => navigateTo(`/${instanceDomain}/@${currentUser.value?.account.username}`))
whenever(logicAnd(notUsingInput, keys['/']), () => navigateTo('/search'))
whenever(logicAnd(notUsingInput, computed(() => keys.current.size === 1), keys['/']), () => navigateTo('/search'))

const toggleFavouriteActiveStatus = () => {
// TODO: find a better solution than clicking buttons...
Expand Down

0 comments on commit 42aeb8f

Please sign in to comment.