Skip to content

Conversation

@perminder-17
Copy link
Collaborator

@perminder-17 perminder-17 commented Apr 19, 2025

Fixes : #7759

PROBLEM:
Inside our custom _onkeyup handler we cleared this.key (and other state) before calling the user‑defined keyReleased() callback. By the time the sketch’s keyReleased() ran, key had already been wiped, so console.log(key) showed an empty string.

SOLUTION:

Move the user‑callback block to the very top so it doesn’t touch key until the sketch has read it, letting sketches read the correct key.

@ksen0 ksen0 merged commit 9189b84 into processing:dev-2.0 Apr 23, 2025
2 checks passed
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.

2 participants