ionic-team / ionic-team/ionic-framework

feat: overlays, enter key to dismiss dialog with inputs

オープン
#21,665 コメント 4 件 リアクション 12 件 担当者 0 名 GitHub で見る
package: core type: feature request
主要言語
TypeScript
スター
52.7k
フォーク
13.3k
平均マージ
1日 15時間
マージ済み PR(30日)
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。