I’m using the APDE and are having problems with a sketch where I’m taking input from the virtual keyboard and displaying it in a text field. It works great usually, until I try to press some special characters. Like “æ” or “é” or anything that isn’t in the english alphabet. The problem is that when I press these keys on my keyboard, the sketch doesn’t even register the input. As you can see if you run the code. when a special key is typed, the background doesn’t change. which means the keyPressed() function isn’t even called.
String s = "";
void draw(){
background(0);
textsize(400);
Align(CENTER);
text(s,width/2,height/2);
}
void mousePressed(){
openKeyboard();
}
void keyPressed(){
s = ""+key;
background(255);
}