tabris icon indicating copy to clipboard operation
tabris copied to clipboard

Focus Lost event when keyboard vanishes

Open mkempka opened this issue 10 years ago • 2 comments

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.

mkempka avatar Dec 23 '13 10:12 mkempka

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.

mpost avatar Jun 24 '14 09:06 mpost

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

hstaudacher avatar Jun 25 '14 09:06 hstaudacher