[Solved] Forward key event
-
I've got a Rectangle and a TextInput.
The focus is on the Recangle, and when I press any character, I want the focus to be on the TextInput and also the character should be written into the TextInput element.In the Rectangle I've got
@
Keys.onPressed:
{
textinput.forceActiveFocus();
textinput.Keys.pressed(event);
}
@but this doesn't work.
@
Keys.forwardTo: [textinput]
@is not working either.
I don't know how I can forward the keys to the TextInput element.
-
This is working in general. My problem is though that I'm using a validator and an input mask. Also my textinput.text property is bound to a C++ property.
The binding is not working anymore afterwards. I could do validating and everything by hand, but I hoped that there would be an easier solution.