-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Closed
Labels
package: core@ionic/core package@ionic/core packagetype: feature requesta new feature, enhancement, or improvementa new feature, enhancement, or improvement
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already include this feature request, without success.
Describe the Feature Request
It could be useful for ionic to make use of the new close watcher api [1][2] to listen for close signals to close components such as alert dialogs.
[1] https://html.spec.whatwg.org/multipage/interaction.html#the-closewatcher-interface
[2] https://developer.chrome.com/blog/new-in-chrome-120#close-watcher
Describe the Use Case
This API allows listening for escape key presses, along with more platform specific close signals such as Android's back button/ gesture. This would provide a more native feel (matching both the native platform and the web).
It would also improve accesibility as it supports Talkback back gestures too.
Describe Preferred Solution
The close watcher API being used when supported feels like the best solution.
Describe Alternatives
No response
Related Code
No response
Additional Information
No response
martinzima
Metadata
Metadata
Assignees
Labels
package: core@ionic/core package@ionic/core packagetype: feature requesta new feature, enhancement, or improvementa new feature, enhancement, or improvement