Simulate an Enter Key Press

Ignition Vision:
I have a popup screen with a button that closes the popup window and sets the focus on a text field in the main window- This functions as expected- Once the focus is set, I would also like to have a simulated ‘Enter Key Press’ to invoke the keyPress event handler script to fire-

Is it possible to simulate an ‘enter’ key press within a script?-

Robert-

It may be possible, but this a common and flawed line of thinking.

Don’t simulate a key press. Move your key press logic to a function in a script library, and make the key press event and whatever triggers this new scenario call that function.

5 Likes

Thank you, that worked beautifully!- Much appreciated-