Simulate Keyboard presses

Hello,
I don’t think this exists.
There are methods to simulate mouse & touch interactions into containers/widgets, but nothing to simulate keyboard interactions.
I realise that this might be difficult behaviour to define, as keyboard actions can be “routed” to focussed widgets, with the focus being “drilled” down through multiple layers of containers, or in the global space to be picked up by the keyboard operators.

My use case is an on-screen-keyboard to allow me to send arrow keys and keystrokes into a text field widget.
The idea being a user can select text within the widget, then press the delete key to delete the selection. Or to start typing to replace the text. Or use arrow keys to navigate the edit cursor. Essentially have the OSK exactly replicate a physical keyboard.
I realise I would have to manually manage the focus back to the widget to send keystrokes into it, as the user will have just changed focus to a button on the OSK, but I believe there are methods for setting focus.

I am currently appending or popping to the text widgets value parameter. But I would like to provide a more native experience.

You read our minds. This is being worked on currently.

1 Like

That’s fantastic news.
I can continue with string manipulation for the time being.

I’m really enjoying the pace of features you guys are working through! And they aren’t one-trick-pony features in response to specific situations, but well thought out features everyone can use.
Keep up the great work!