Skip to content

Feature: implemented "ESC" key press closes content-section#15

Open
cwise89 wants to merge 5 commits into
chrisbolin:masterfrom
cwise89:master
Open

Feature: implemented "ESC" key press closes content-section#15
cwise89 wants to merge 5 commits into
chrisbolin:masterfrom
cwise89:master

Conversation

@cwise89
Copy link
Copy Markdown
Contributor

@cwise89 cwise89 commented Feb 5, 2021

What: When a user presses the "ESC" key, the active content-section will close.

###How: useEffect will run when back.js is mounted. The useEffect hook will add an event listener to the window and will also clean up the event listener when back.js is unmounted.

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.

1 participant