Skip to content

alertify.confirm() returns OK and not CANCEL when ENTER KEY Pressed and CANCEL is default #278

@dbareis

Description

@dbareis

I am calling "alertify**.confirm()**" with these options:

  • closable: false
  • closableByDimmer: false
  • defaultFocus: "cancel"
  • frameless: false
  • maximizable: true
  • pinnable: true
  • resizable: true
  • title: "A Title

If I don't mouse click the dialog and press ENTER, it response with CANCEL (good).
If I mouse click the anywhere dialog (not a button) and press ENTER, it response with CANCEL (bug). Clicking the dialog should not change the focus.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions