1
0
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:
AkiraFukushima 2018-09-17 23:19:34 +09:00 committed by GitHub
commit 31398f4cca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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