refs #611 Stop shortcut when jump modal is hidden

This commit is contained in:
AkiraFukushima 2018-09-17 22:02:58 +09:00
parent ca047d8afd
commit 55670d3ec0
1 changed files with 4 additions and 1 deletions

View File

@ -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: {