I want to show virtual keyboard and receive input from it when user clicks button and receive a single key press on the keyboard. Basically I want the button text to be replaced by the key pressed by the user. Probably I can do it by having a Text edit field as a child of a button. But is there a way to do it without having a text field?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
See attached demo. Not sure its exactly what you want. If you want to capture individual key inputs the UIKeyInput would have to be implemented on the textfield, similar to onkeypress of a TEdit.
Thanks for the demo, Tyson. Yes, I want to capture individual keystrokes without needing to press Return or Done button on the virtual keyboard - I will see how to implement UIKeyInput.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I want to show virtual keyboard and receive input from it when user clicks button and receive a single key press on the keyboard. Basically I want the button text to be replaced by the key pressed by the user. Probably I can do it by having a Text edit field as a child of a button. But is there a way to do it without having a text field?
Kaarigar,
See attached demo. Not sure its exactly what you want. If you want to capture individual key inputs the UIKeyInput would have to be implemented on the textfield, similar to onkeypress of a TEdit.
Thanks for the demo, Tyson. Yes, I want to capture individual keystrokes without needing to press Return or Done button on the virtual keyboard - I will see how to implement UIKeyInput.