We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa8a0ab commit 65c91f7Copy full SHA for 65c91f7
packages/pf4-component-mapper/src/files/wizard.js
@@ -92,7 +92,13 @@ const WizardInternal = ({
92
className={`pf-c-wizard ${inModal ? '' : 'no-shadow'} ddorg__pf4-component-mapper__wizard ${className ? className : ''}`}
93
role="dialog"
94
aria-modal={inModal ? 'true' : undefined}
95
- onKeyDown={onKeyDown}
+ onKeyDown={(e) => {
96
+ onKeyDown(e);
97
+
98
+ if (e.key === 'Escape' && inModal) {
99
+ formOptions.onCancel();
100
+ }
101
+ }}
102
{...rest}
103
>
104
{title && (
0 commit comments