diff --git a/src/components/SaveSegmentGroupDialog.vue b/src/components/SaveSegmentGroupDialog.vue index 579a6e97..bca52312 100644 --- a/src/components/SaveSegmentGroupDialog.vue +++ b/src/components/SaveSegmentGroupDialog.vue @@ -43,6 +43,7 @@ import { onMounted, ref } from 'vue'; import { saveAs } from 'file-saver'; import { useSegmentGroupStore } from '@/src/store/segmentGroups'; import { writeImage } from '@/src/io/readWriteImage'; +import { onKeyDown } from '@vueuse/core'; const EXTENSIONS = [ 'dcm', @@ -87,6 +88,10 @@ onMounted(() => { fileName.value = segmentGroupStore.metadataByID[props.id].name; }); +onKeyDown('Enter', () => { + saveSegmentGroup(); +}); + function validFileName(name: string) { return name.trim().length > 0 || 'Required'; } diff --git a/src/components/SaveSession.vue b/src/components/SaveSession.vue index ad2710b3..33c1973d 100644 --- a/src/components/SaveSession.vue +++ b/src/components/SaveSession.vue @@ -33,6 +33,7 @@