ionic-team / ionic-team/ionic-framework

feat: overlays, enter key to dismiss dialog with inputs

Abierto
#21,665 4 comentarios 12 reacciones 0 asignados Ver en GitHub
package: core type: feature request
Lenguaje dominante
TypeScript
Estrellas
52.7k
Forks
13.3k
Merge medio
1 d 15 h
PR fusionados (30 d)
51

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.