diff --git a/src/components/board/Stack.vue b/src/components/board/Stack.vue index a9879fc72..60ddffa82 100644 --- a/src/components/board/Stack.vue +++ b/src/components/board/Stack.vue @@ -118,6 +118,7 @@ :placeholder="t('deck', 'Card name')" required pattern=".*\S+.*" + @focus="onCreateCardFocus" @keydown.esc="stopCardCreation"> diff --git a/src/components/cards/CardItem.vue b/src/components/cards/CardItem.vue index da3708f5c..11b5754da 100644 --- a/src/components/cards/CardItem.vue +++ b/src/components/cards/CardItem.vue @@ -130,6 +130,7 @@ export default { showArchived: state => state.showArchived, currentBoard: state => state.currentBoard, showCardCover: state => state.showCardCover, + shortcutLock: state => state.shortcutLock, }), ...mapGetters([ 'isArchived', @@ -205,6 +206,9 @@ export default { }, methods: { focus(card) { + if (this.shortcutLock) { + return + } card = this.$refs[`card${card}`] card.focus() },