| @@ -27,15 +27,10 @@ | ||
| 27 | 27 | open |
| 28 | 28 | ? <Modal |
| 29 | 29 | title={title} |
| 30 | 30 | onRequestClose={onCancel} |
| 31 | - closeButtonLabel={cancelLabel} | |
| 31 | + closeButtonLabel={__('Close dialog', 'code-snippets')} | |
| 32 | 32 | isDismissible={true} |
| 33 | - onKeyDown={event => { | |
| 34 | - if ('Enter' === event.key) { | |
| 35 | - onConfirm?.() | |
| 36 | - } | |
| 37 | - }} | |
| 38 | 33 | > |
| 39 | 34 | {children} |
| 40 | 35 | <Flex direction="row" justify="flex-end"> |
| 41 | 36 | <Button variant="tertiary" onClick={onCancel}> |