[MM-64617] Add enter key press handler to each of the modals (#3463)

This commit is contained in:
Devin Binnie
2025-07-21 09:23:03 -04:00
committed by GitHub
parent af7009535d
commit ecf47e25b7
7 changed files with 8 additions and 2 deletions

View File

@@ -36,6 +36,7 @@ export default function DestructiveConfirmationModal(props: Props) {
modalHeaderText={title}
handleCancel={onCancel}
handleConfirm={onAccept}
handleEnterKeyPress={onAccept}
confirmButtonText={acceptLabel}
cancelButtonText={cancelLabel}
confirmButtonClassName='btn-danger'