diff --git a/core/src/processing/opengl/PSurfaceJOGL.java b/core/src/processing/opengl/PSurfaceJOGL.java index cecfd0d0e..02ec8fa76 100644 --- a/core/src/processing/opengl/PSurfaceJOGL.java +++ b/core/src/processing/opengl/PSurfaceJOGL.java @@ -927,6 +927,19 @@ public class PSurfaceJOGL implements PSurface { keyCode); sketch.postEvent(ke); + + if (!isPCodedKey(code) && !isHackyKey(code)) { + if (peAction == KeyEvent.PRESS) { + // Create key typed event + // TODO: combine dead keys with the following key + KeyEvent tke = new KeyEvent(nativeEvent, nativeEvent.getWhen(), + KeyEvent.TYPE, peModifiers, + keyChar, + 0); + + sketch.postEvent(tke); + } + } } private static boolean isPCodedKey(short code) {