refs #611 Stop shortcut when jump modal is hidden
This commit is contained in:
parent
ca047d8afd
commit
55670d3ec0
|
@ -10,7 +10,7 @@
|
||||||
v-model="channel"
|
v-model="channel"
|
||||||
:placeholder="$t('modals.jump.jump_to')"
|
:placeholder="$t('modals.jump.jump_to')"
|
||||||
ref="channel"
|
ref="channel"
|
||||||
v-shortkey="{next: ['arrowdown'], prev: ['arrowup'], select: ['enter']}"
|
v-shortkey="shortcutEnabled ? {next: ['arrowdown'], prev: ['arrowup'], select: ['enter']} : {}"
|
||||||
@shortkey="handleKey"
|
@shortkey="handleKey"
|
||||||
/>
|
/>
|
||||||
<ul class="channel-list">
|
<ul class="channel-list">
|
||||||
|
@ -53,6 +53,9 @@ export default {
|
||||||
set (value) {
|
set (value) {
|
||||||
this.$store.commit('TimelineSpace/Modals/Jump/changeModal', value)
|
this.$store.commit('TimelineSpace/Modals/Jump/changeModal', value)
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
shortcutEnabled: function () {
|
||||||
|
return this.jumpModal
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
Loading…
Reference in New Issue