tabris
tabris copied to clipboard
Focus Lost event when keyboard vanishes
I create a Text widget. I add a FocusListener to that Text widget.
When I tap the Text widget, the keyboard comes up.
When I send the keyboard away, Android and iOS behaves differently:
Unter iOS I get a focusLost event.
Under Android I do not get a focusLost event.
Expected: I expect the same SWT events for similar operations on both OS.
From my expectation the focus should not change when closing the keyboard.
Closing the keyboard could be seen as similar to unplugging a physical keyboard. The focus remains in the text widget. This behavior is also in line with regular SWT/RAP. Your focus will only traverse to other widgets if you hit "tab" or interact with another widget.
The problem is that the two platforms handle focus differently. We should reproduce this with a mobile web browser and see how RAP behaves in the mobile browser. Afterwards we can implement the focus handling consitently