You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Typing some characters in P2D won't return what character was pressed with keyPressed in Processing 4.3 #824
Operating System and OS version: both windows (10, 11) and Ubuntu 22.04
Other information:
Possible Causes / Solutions
Maybe some characters have been forgotten in the keyPressed P2D API in Processing 4 and above because it worked in the last Processing 3 version, I've checked
The keyCode variable should be set to 60 when I press "<" but println(keyCode) prints "0" in the console when I do, confirming that there really is a problem.
Activity
processing-bot commentedon Feb 26, 2024
Created by: bugreporter0
I'm sorry for the weird behavior, I'm new to GitHub and I don't know English very well
processing-bot commentedon Feb 26, 2024
Created by: Hellcat554
I really don’t know what I am doing I’m trying to learn new things I new to
the community in just want to learn….
On Sun, Feb 25, 2024 at 8:31 PM bugreporter0 @.***>
wrote:
Stefterv commentedon Nov 16, 2024
@bugreporter0 What is the key combination you have to press to get the
<character on your OS's?benfry/processing4#824
pinkandwhiteandblack commentedon Nov 19, 2024
I'm bugreporter0.
My keyboard has this character as a key, it's a standard AZERTY full size keyboard. The "<" character is next to the left SHIFT key.
"<" is not the only missing character, it's just an example.
SableRaf commentedon Nov 19, 2024
Hi @pinkandwhiteandblack
The
keyPresseddocumentation page includes this note:See https://processing.org/reference/keyPressed_.html
You can find the key code for any key by using a tool like https://www.toptal.com/developers/keycode
pinkandwhiteandblack commentedon Nov 19, 2024
The keyCode variable should be set to 60 when I press "<" but println(keyCode) prints "0" in the console when I do, confirming that there really is a problem.
Code:
Important: it works in the default render (with keyCode 153 instead of 60 but whatever) but not in P2D.
Also, the"Alt Gr" key on my keyboard returns two keyCodes: 17 then 18 when I press it just once.
SableRaf commentedon Mar 25, 2025
Worth checking if this is fixed by #966 (cc @Rishab87)
If not, this could be a test too :)
Rishab87 commentedon Mar 25, 2025
Yes it is also fixed by #966

SableRaf commentedon Mar 25, 2025
Great! Thanks @Rishab87 ✨
pinkandwhiteandblack commentedon Jun 11, 2025
The issue is still present in 4.4.4 on Windows 10
SableRaf commentedon Jun 11, 2025
Hi @pinkandwhiteandblack
Just tested this on Windows 10 with a QWERTY keyboard using Processing 4.4.4. Pressing
<works as expected in P2D.I don’t have access to an AZERTY keyboard right now, so I can’t test that setup directly.
To help us narrow this down, could you share a few more details?
If it turns out to be layout-specific, we can reopen this or open a new issue with those details.
pinkandwhiteandblack commentedon Jun 11, 2025
It's probably layout-specific because it works when I use a QWERTY keyboard.