mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
FX - Fix key typed
This commit is contained in:
@@ -708,7 +708,12 @@ public class PSurfaceFX implements PSurface {
|
||||
long when = System.currentTimeMillis();
|
||||
KeyCode kc = fxEvent.getCode();
|
||||
// Are they f*ing serious?
|
||||
char key = kc.impl_getChar().charAt(0);
|
||||
char key;
|
||||
if (et == KeyEvent.KEY_TYPED) {
|
||||
key = fxEvent.getCharacter().charAt(0);
|
||||
} else {
|
||||
key = kc.impl_getChar().charAt(0);
|
||||
}
|
||||
int keyCode = kc.impl_getCode();
|
||||
sketch.postEvent(new processing.event.KeyEvent(fxEvent, when,
|
||||
action, modifiers,
|
||||
|
||||
Reference in New Issue
Block a user