mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-02-08 07:48:45 +01:00
Merge pull request #612 from h3poteto/iss-611
closes #611 Stop shortcut when jump modal is hidden
This commit is contained in:
commit
31398f4cca
@ -10,7 +10,7 @@
|
||||
v-model="channel"
|
||||
:placeholder="$t('modals.jump.jump_to')"
|
||||
ref="channel"
|
||||
v-shortkey="{next: ['arrowdown'], prev: ['arrowup'], select: ['enter']}"
|
||||
v-shortkey="shortcutEnabled ? {next: ['arrowdown'], prev: ['arrowup'], select: ['enter']} : {}"
|
||||
@shortkey="handleKey"
|
||||
/>
|
||||
<ul class="channel-list">
|
||||
@ -53,6 +53,9 @@ export default {
|
||||
set (value) {
|
||||
this.$store.commit('TimelineSpace/Modals/Jump/changeModal', value)
|
||||
}
|
||||
},
|
||||
shortcutEnabled: function () {
|
||||
return this.jumpModal
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user