diff --git a/client/src/components/History/Content/ContentItem.vue b/client/src/components/History/Content/ContentItem.vue index 11ecbf1df642..8eacfc62d45a 100644 --- a/client/src/components/History/Content/ContentItem.vue +++ b/client/src/components/History/Content/ContentItem.vue @@ -4,7 +4,7 @@ import { faCheckSquare, faSquare } from "@fortawesome/free-regular-svg-icons"; import { faArrowCircleDown, faArrowCircleUp, faCheckCircle, faSpinner } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; import { BBadge, BButton, BCollapse } from "bootstrap-vue"; -import { computed } from "vue"; +import { computed, ref } from "vue"; import { useRoute, useRouter } from "vue-router/composables"; import type { ItemUrls } from "@/components/History/Content/Dataset/index"; @@ -77,6 +77,8 @@ const emit = defineEmits<{ const entryPointStore = useEntryPointStore(); const eventStore = useEventStore(); +const contentItem = ref(null); + const jobState = computed(() => { return new JobStateSummary(props.item); }); @@ -298,6 +300,16 @@ function onTagClick(tag: string) { } } +function onButtonSelect(e: Event) { + const event = e as KeyboardEvent; + if (event.shiftKey) { + onClick(e); + } + contentItem.value?.focus(); + emit("init-key-selection"); + emit("update:selected", !props.selected); +} + function toggleHighlights() { emit("toggleHighlights", props.item); } @@ -312,6 +324,7 @@ function unexpandedClick(event: Event) {