How can I capture a key press on a popup?
Right-click → Configure Events → onKeyDown / onKeyPress / onKeyUp.
I already did that but let me double check my code for errors.
I created the keypad below and I need the user to be able to enter numbers and except from the keyboard. I also need to select the password field (which isn't working) without the autocomplete.
Paste the view so we can try it out.
No, select the view in Project Browser, right-click, copy and paste it in here and format it using the </> button.
What are you expecting that script to do? At best it's going to overwrite whatever was there with the keyCode.
I have to take screenshots because I am working in a high security area and getting code out is very difficult.
I tried this and I am getting nothing. I have to be doing something very wrong.
I was able to get the session event to work but I can't specify which page
Have a look at Perspective Keypad on Ignition Exchange | Inductive Automation. It was written by @cmallonee of IA who frequents the forum. If it doesn't do exactly what you want it may give you some ideas. I haven't tried it.
See also,
I don't understand why there are Keyboard Events if none of them actually do anything. Like I said I got the session Keyboard Event to work but there is no way to identify which view is being displayed.
Did you notice the line in Perspective Session Event Scripts - Ignition User Manual 8.1 - Ignition Documentation (Keystrokes section)?
Keystroke detection is only active inside of a Perspective session and is not active inside of the Designer.
I did. The session events work I just have no way of determining what view is active when the event fires.
If I use the event on a view I just discovered that if I click into a text field on the view it starts to capture. If I click off the text field it stops.
I would have expected to have to create an event on each keypad key.