react-spectrum
react-spectrum copied to clipboard
issue-855: AlertDialog add support for allowsKeyboardConfirmation prop
Closes https://github.com/adobe/react-spectrum/issues/855
![Screen Shot 2022-07-20 at 12 22 58 PM](https://user-images.githubusercontent.com/19467235/180100786-2e34e2fb-d932-4df0-86a2-bc3df90e9510.png)
✅ Pull Request Checklist:
- [x] Included link to corresponding React Spectrum GitHub Issue.
- [x] Added/updated unit tests and storybook for this change (for new code or code which already has tests).
- [x] Filled out test instructions.
- [x] Updated documentation (if it already exists for this component).
- [ ] Looked at the Accessibility Practices for this feature - Aria Practices
📝 Test Instructions:
Open an AlertDialog, verify if pressing the "Enter" key closes it and triggers onPrimaryAction.