react-spectrum
react-spectrum copied to clipboard
Fix escape key to close IME in useOverlay
Closes https://github.com/adobe/react-spectrum/issues/5921
✅ Pull Request Checklist:
- [x] Included link to corresponding React Spectrum GitHub Issue.
- [ ] Added/updated unit tests and storybook for this change (for new code or code which already has tests).
- [x] Filled out test instructions.
- [ ] Updated documentation (if it already exists for this component).
- [ ] Looked at the Accessibility Practices for this feature - Aria Practices
📝 Test Instructions:
- Open OS keyboard settings
- Add Chinese Pinyin - Simplified
- Visit http://localhost:9003/?path=/story/dialog--form&providerSwitcher-express=false&strict=true
- Type "ni", a set of suggestions should appear
- Press Tab 3x
- Press Escape and see the state of the dialog