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

Close autopilot modal with esc #296

Merged
merged 2 commits into from
Aug 3, 2016
Merged

Conversation

epilande
Copy link
Contributor

#295.

When autopilot modal is open, add event listener to esc to close modal.

@iam4x iam4x merged commit 0da03a0 into iam4x:master Aug 3, 2016
@bbr21
Copy link

bbr21 commented Aug 3, 2016

@iam4x @epilande : Hi Guys, sorry but could you explain me how to benefits from this new feature ?

Sorry I'm a newbie in here ...

@epilande
Copy link
Contributor Author

epilande commented Aug 3, 2016

@bbr21 This allows you to close the autopilot pop-up with the esc key on your keyboard instead of having to press the cancel button.

@bbr21
Copy link

bbr21 commented Aug 4, 2016

@epilande : Thanks :)
But could you explain me how to implement this please ?

@airliner1975
Copy link

Hi from Vienna!
Is it possible, that a german keyboard-layout (i.e. on a mac book pro) uses different keyCodes?
I'm asking because neither the esc-key nor the spacebar-key for pausing works for me.

eugene2candy pushed a commit to eugene2candy/pokemongo-webspoof that referenced this pull request Apr 10, 2021
* Add `esc` event listener to close autopilot modal

* Check modal is open before `handleCancelAutopilot()`
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.

4 participants