Skip to content

esc to close/escape from topmost modal #138

@pihart

Description

@pihart

Implementation:

  • just store a stack of the opened modals; once one is closed, remove from the stack
  • on esc
    • if stack is nonempty, close recent item, and do not "deselect". by the above hook/function, this will automatically remove it from the stack - don't do the work twice
    • if stack is empty, proceed with the default behavior

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions