ionic-team / ionic-team/ionic-framework
feat: overlays, enter key to dismiss dialog with inputs
未关闭
package: core
type: feature request
- 主要语言
- TypeScript
- 星标
- 52.7k
- 派生
- 13.3k
- 平均合并
- 1 天 15 小时
- 30 天内合并 PR
- 51
描述
# Feature Request
**Ionic version:**
[x] **5.2.3**
**Describe the Feature Request**
When running in a desktop browser, it is common to be able to use the Enter and Escape keys to dismiss alert dialogs.
For example, "Are you sure you want to..." with OK and Cancel buttons.
**Describe Preferred Solution**
Add a way to indicate this behavior when specifying the buttons to be displayed.
Possible approaches:
- `role` value to indicate the accept button (similar to current cancel behavior)
- property to indicate keyboard binding for buttons so enter could be specified as well as keys for other buttons.
贡献指南
评估
这个 Issue 还没有评估数据。