diff --git a/src/components/misc/keyboard-shortcuts.vue b/src/components/misc/keyboard-shortcuts.vue index fbd7bd5bc..150dcc5fd 100644 --- a/src/components/misc/keyboard-shortcuts.vue +++ b/src/components/misc/keyboard-shortcuts.vue @@ -90,11 +90,13 @@ export default { components: {Shortcut}, computed: { isTaskPage() { - return this.$route.name === 'task.detail' || - this.$route.name === 'task.list.detail' || - this.$route.name === 'task.gantt.detail' || - this.$route.name === 'task.kanban.detail' || - this.$route.name === 'task.detail' + return [ + 'task.detail', + 'task.list.detail', + 'task.gantt.detail', + 'task.kanban.detail', + 'task.detail', + ].includes(this.$route.name) }, isListPage() { return this.$route.name.startsWith('list.')