How to stop exiting the sketch when ESC is pressed? #575
-
| In processing, when hitting ESC the sketch will quit. Here is the code. Seems like there is a solution to override this in processing when setting the key to zero. However, I couldn't get this to work in py5. I appreciate if anyone has any suggestions. Thanks! | 
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
| Welcome to py5, @mj-mahzoon ! We have been discussing exactly this very recently (#548) and Jim found it wasn't so easy to make it work in the old Processing way, but on the next release of py5 we'll be able to use an  | 
Beta Was this translation helpful? Give feedback.
-
| Hello, @mj-mahzoon ! As @villares said, the next release will have an  I'm currently working to finish up a macOS bug. Once that's done, there will be a release. Hopefully by the end of the year? That's my goal. | 
Beta Was this translation helpful? Give feedback.
-
| Hurray, solved! https://py5coding.org/reference/sketch_intercept_escape.html | 
Beta Was this translation helpful? Give feedback.

Hurray, solved! https://py5coding.org/reference/sketch_intercept_escape.html