diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index de89d0947..8410a8fd6 100644 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -372,9 +372,9 @@ public class PApplet implements PConstants { public int pixelHeight; /** - * Keeps track of ENABLE_KEY_AUTO_REPEAT hint + * Keeps track of ENABLE_KEY_REPEAT hint */ - protected boolean isKeyAutoRepeatEnabled = false; + protected boolean keyRepeatEnabled = false; /** * ( begin auto-generated from mouseX.xml ) @@ -2918,7 +2918,7 @@ public class PApplet implements PConstants { protected void handleKeyEvent(KeyEvent event) { // Get rid of auto-repeating keys if desired and supported - if (!isKeyAutoRepeatEnabled && event.isAutoRepeat()) return; + if (!keyRepeatEnabled && event.isAutoRepeat()) return; keyEvent = event; key = event.getKey(); diff --git a/core/src/processing/core/PConstants.java b/core/src/processing/core/PConstants.java index 35fde2971..c7d6e8395 100644 --- a/core/src/processing/core/PConstants.java +++ b/core/src/processing/core/PConstants.java @@ -517,8 +517,8 @@ public interface PConstants { static final int ENABLE_BUFFER_READING = 10; static final int DISABLE_BUFFER_READING = -10; - static final int DISABLE_KEY_AUTO_REPEAT = 11; - static final int ENABLE_KEY_AUTO_REPEAT = -11; + static final int DISABLE_KEY_REPEAT = 11; + static final int ENABLE_KEY_REPEAT = -11; static final int HINT_COUNT = 12; } diff --git a/core/src/processing/core/PGraphics.java b/core/src/processing/core/PGraphics.java index 22404f31a..9532783f2 100644 --- a/core/src/processing/core/PGraphics.java +++ b/core/src/processing/core/PGraphics.java @@ -1144,10 +1144,10 @@ public class PGraphics extends PImage implements PConstants { showWarning("hint(ENABLE_NATIVE_FONTS) no longer supported. " + "Use createFont() instead."); } - if (which == ENABLE_KEY_AUTO_REPEAT) { - parent.isKeyAutoRepeatEnabled = true; - } else if (which == DISABLE_KEY_AUTO_REPEAT) { - parent.isKeyAutoRepeatEnabled = false; + if (which == ENABLE_KEY_REPEAT) { + parent.keyRepeatEnabled = true; + } else if (which == DISABLE_KEY_REPEAT) { + parent.keyRepeatEnabled = false; } if (which > 0) { hints[which] = true; diff --git a/core/todo.txt b/core/todo.txt index d14dd4e83..0fe001eaa 100644 --- a/core/todo.txt +++ b/core/todo.txt @@ -1,5 +1,10 @@ 0243 core (3.0b5) +jakub +X keyTyped() not firing with P2D and P3D +X https://github.com/processing/processing/issues/3582 +X https://github.com/processing/processing/pull/3652 + known issues _ P2D and P3D windows behave strangely when larger than the screen size