IgnitionSDK TouchscreenMouseListener does not hide password when listening to TouchscreenPasswordField.
Symptoms:
- When TouchscreenMouseListener is attached to a TouchscreenPasswordField component, the on-screen keyboard is rendered. However, the password is displayed in clear text on the on-screen keyboard UI.
- After pressing enter on the on-screen keyboard, the password is properly masked within the TouchscreenPasswordField.
- See screenshots attached.
Expected result:
- Password is masked on the on-screen keyboard before pressing enter.
Below is an excerpt from our custom IgnitionSDK module. Please comment if we are missing some lines or using the API incorrectly.
import com.inductiveautomation.vision.api.client.components.touchscreen.TouchscreenMouseListener;
import com.inductiveautomation.vision.api.client.components.touchscreen.TouchscreenPasswordField;
private TouchscreenPasswordField txtPassword = new TouchscreenPasswordField();
txtPasswordTouchListener = new TouchscreenMouseListener(txtPassword);
txtPassword.setTouchscreenMode(TouchscreenMouseListener.MODE_SINGLE_CLICK);
txtPassword.addMouseListener(txtPasswordTouchListener);
TouchscreenPasswordField.getTouchscreenStyle() natively returns com.inductiveautomation.factorypmi.application.components.util.TouchscreenMouseListener.KeyboardStyle.Auto
Note, this is a different KeyboardStyle than com.inductiveautomation.vision.api.client.components.touchscreen.KeyboardRequester.KeyboardStyle.Password