Hi,
Some textItems, checkboxItems and a buttonItem are assigned to a DynamicForm.
Because my user wants to press enter key only to move focus
from a textItem to the next one, not by pressing tab key,
I wrote a custom ItemKeyPressHandler to detect enter key pressed.
When textItems or checkBoxItems have focus, ItemKeyPressEvent is fired as expected.
But when buttonItem has focus, ItemKeyPressEvent is not fired.
My alternative is to add a dirty line of code, dynamicForm.focusInItem( "firstTextItem" )
at the end of the buttonItem's clickHandler. But I am surprised to find
out this is not working either.
Any workaround ?
Regards,
veritas
Some textItems, checkboxItems and a buttonItem are assigned to a DynamicForm.
Because my user wants to press enter key only to move focus
from a textItem to the next one, not by pressing tab key,
I wrote a custom ItemKeyPressHandler to detect enter key pressed.
When textItems or checkBoxItems have focus, ItemKeyPressEvent is fired as expected.
But when buttonItem has focus, ItemKeyPressEvent is not fired.
My alternative is to add a dirty line of code, dynamicForm.focusInItem( "firstTextItem" )
at the end of the buttonItem's clickHandler. But I am surprised to find
out this is not working either.
Any workaround ?
Regards,
veritas
Comment