Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add escape to dismiss #82

Merged
merged 2 commits into from
Mar 15, 2023
Merged

Add escape to dismiss #82

merged 2 commits into from
Mar 15, 2023

Conversation

keithamus
Copy link
Collaborator

@keithamus keithamus commented Mar 14, 2023

This PR adds support for the Escape key causing all auto popovers to be dismissed.

Steps to test/reproduce

Please explain how to best reproduce the issue and/or test the changes locally (including the pages/URLs/views/states to review).

  • Enact the Click to show Popover 3 button
  • Observe popover 3 is open
  • Press Escape
  • Observe popover 3 is now closed.

Show me

Provide screenshots/animated gifs/videos if necessary.

REMEMBER: Attach this PR to the Trello card

src/popover.ts Outdated Show resolved Hide resolved
src/popover.ts Outdated Show resolved Hide resolved
@keithamus keithamus force-pushed the add-escape-to-dismiss branch from b1b153c to 9a44c78 Compare March 15, 2023 16:41
@keithamus keithamus force-pushed the add-escape-to-dismiss branch from 9a44c78 to fe8bcc0 Compare March 15, 2023 16:44
@keithamus
Copy link
Collaborator Author

@jgerigmeyer this one has been rebased and is, IMO, good to go.

Copy link
Member

@jgerigmeyer jgerigmeyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@jgerigmeyer jgerigmeyer merged commit a3798df into main Mar 15, 2023
@jgerigmeyer jgerigmeyer deleted the add-escape-to-dismiss branch March 15, 2023 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants