Skip to content

Esc with focus in a notice above an open dialog closes the dialog #383

Open

Description

@samitbasu

Found building notifications (#347, PR #382): core sends Esc to the topmost overlay that accepts Esc, here the dialog, before any widget code runs. So with keyboard focus inside a notice that floats above an open dialog, Esc closes the dialog instead of dismissing the notice. A page's cancel button takes Esc the same way. Expected: Esc goes to the overlay that holds focus (the notice's layer, which is above the dialog), not the topmost Esc-accepting one. Test: focus a notice above a modal, press Esc; the notice is dismissed and the dialog stays open.

Activity

  1. added
    bug
    on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions