I need a shortcut for stopping sketch in Processing

please format code with </> button * homework policy * asking questions

فهرس

I want to create a custom shortcut for stopping the sketch because there is no shortcut for that
is there any code I can use in the program for that

Just press on your keyboard :

ESC

2 Likes

Hello @abdu

There are a few nice suggestions in this thread:

:nerd_face:

Just hit esc on the keyboard, sometimes it doesnt work unless you click the screen first, to solve that issue put

surface.setVisible(true);

in the void setup function
not sure if the surface is even needed in the newer version as im still using 3.54

1 Like