Skip to content

fix(onboarding): add Escape key to close ConfirmResetModal#51

Open
qorexdevs wants to merge 1 commit into
aimerdoux:mainfrom
qorexdevs:add-pnpm-clean-script
Open

fix(onboarding): add Escape key to close ConfirmResetModal#51
qorexdevs wants to merge 1 commit into
aimerdoux:mainfrom
qorexdevs:add-pnpm-clean-script

Conversation

@qorexdevs

Copy link
Copy Markdown

Closes #17. Added useEffect keydown listener that calls onCancel when Escape is pressed and modal is not busy. Consistent with standard browser UX for dialogs.

@qorexdevs

Copy link
Copy Markdown
Author

CI failed due to an EnvironmentTeardownError in test/reengagement.test.ts (not related to my ConfirmResetModal.tsx change). Could you rerun the checks when you get a chance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add keyboard shortcut (Escape) to close wizard confirmation dialogs

1 participant