ionic-team / ionic-team/ionic-framework

feat: overlays, enter key to dismiss dialog with inputs

Đang mở
#21,665 4 bình luận 12 reaction 0 người được giao Xem trên GitHub
package: core type: feature request
Ngôn ngữ chính
TypeScript
Star
52.7k
Fork
13.3k
Merge trung bình
1 ngày 15 giờ
Pull request đã merge (30 ngày)
51

Mô tả

# 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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.