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

ESC key #7

Closed
kritzikratzi opened this issue Dec 1, 2009 · 6 comments
Closed

ESC key #7

kritzikratzi opened this issue Dec 1, 2009 · 6 comments

Comments

@kritzikratzi
Copy link
Owner

ESC key doesn't always work

@eljeffeg
Copy link

I was able to get around this issue by running the below code once at the beginning of my draw().

this.requestFocus();

@kritzikratzi
Copy link
Owner Author

odd, because sketch.requestFocus() is already in there.
maybe it needs to be done delayed, a bit after fullscreen mode is entered/left...

when do you call that code?

@eljeffeg
Copy link

I call it in the draw(). I'm running it a couple lines down but I tested it as the first line in the draw() and that worked fine as well. I only call it once on the first draw. Tried it as the last line in the setup() and that did not work.

@kritzikratzi
Copy link
Owner Author

@eljeffeg
Copy link

Yes, That fixed it!

@kritzikratzi
Copy link
Owner Author

great, fix will be included in the next release.

This issue was closed.
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

No branches or pull requests

2 participants