JDK-8090732 : Add CAPS LOCK and NUM LOCK indicators to the PasswordField
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: fx2.0
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2009-11-24
  • Updated: 2021-02-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Blocks :  
Blocks :  
Description
We need to add support to PasswordBox for warning the user when CAPS LOCK or NUM LOCK are on when typing a password, as this is a common error mode on desktop. This might well be a desktop only API.
Comments
The solution will probably be to add CSS pseudo-states such as caps-lock and num-lock to all input controls, . Visible indicators can then be added in stylesheets or with the setStyle() method.
08-08-2012

It would be useful to have a NUM LOCK indicator too, because it also affects typing when using a laptop.
31-07-2012

Changed Bug Title and Label from "Password box" and "PasswordBox" to "PasswordField". Added "UX" to Labels.
21-09-2011

Not requested by Presidio PRD
01-11-2010

If we can do this for Presidio that would be great.
08-06-2010

Support for this key locking state is also being added to Glass for Prism.
08-06-2010

Note the API described here: http://java.sun.com/javase/7/docs/api/java/awt/Toolkit.html#getLockingKeyState(int)
31-05-2010