-
Enhancement
-
Resolution: Fixed
-
P3
-
8u271, jfx15
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8260714 | 8u301 | Kevin Rushforth | P3 | Resolved | Fixed | b01 |
JDK-8264450 | 8u291 | Kevin Rushforth | P3 | Resolved | Fixed | b31 |
JDK-8262203 | 8u281 | Kevin Rushforth | P3 | Closed | Fixed | b33 |
JDK-8266583 | jfx11.0.12 | Kevin Rushforth | P3 | Resolved | Fixed |
AWT already has an API to do this:
boolean java.awt.ToolKit::getLockingKeyState​(int keyCode)
https://docs.oracle.com/en/java/javase/15/docs/api/java.desktop/java/awt/Toolkit.html#getLockingKeyState%28int%29
We need something similar in JavaFX. Among other things, it would allow an application to inform the user that caps lock was enabled for passwords or other usages where the keyboard input might not be echoed. See JDK-8090732.
A similar FX API would be something like:
boolean java.application.Platform::isKeyLocked(KeyCode keyCode)
- backported by
-
JDK-8260714 Need API to query states of CAPS LOCK and NUM LOCK keys
- Resolved
-
JDK-8264450 Need API to query states of CAPS LOCK and NUM LOCK keys
- Resolved
-
JDK-8266583 Need API to query states of CAPS LOCK and NUM LOCK keys
- Resolved
-
JDK-8262203 Need API to query states of CAPS LOCK and NUM LOCK keys
- Closed
- blocks
-
JDK-8090732 Add CAPS LOCK and NUM LOCK indicators to the PasswordField
- Open
- csr for
-
JDK-8259868 Need API to query states of CAPS LOCK and NUM LOCK keys
- Closed
- duplicates
-
JDK-8090882 Need API to query states of CAPS LOCK and NUM LOCK keys
- Closed
- links to
-
Commit openjdk/jfx11u/ea4f8806
-
Commit openjdk/jfx/217a8cba
-
Review openjdk/jfx11u/4
-
Review openjdk/jfx/385