RFR: 8245053: Keyboard doesn't show when TextInputControl has focus

Abhinay Agarwal github.com+3197675+abhinayagarwal at openjdk.java.net
Tue May 19 08:10:48 UTC 2020


On Fri, 15 May 2020 10:58:14 GMT, Jeanette Winzenburg <fastegal at openjdk.org> wrote:

>> In Android, TextInputControls (TextField and TextArea) are responsible for showing and hiding software keyboard.
>> Currently, a focus listener is attached to these controls and is used to toggle the visibility of keyboard. This
>> condition fails in cases where the control already has focus but the keyboard is not visible.  Ideally, the keyboard
>> should be shown again when the user taps on the TextInputControl.
>> This PR adds an event handler for `MouseEvent.MOUSE_CLICKED` event and shows the keyboard  if the TextInput control is
>> both editable and focused.
>
> out off my home-zone here, just fyi and in case it might be relevant to android skins as well: there's an umbrella
> issue to cleanup skin implementations [JDK-8241364](https://bugs.openjdk.java.net/browse/JDK-8241364) - both the
> android text skins look like leaking in the manually registered focus listener (not introduced here) and the
> eventHandler added here. Probably should be removed manually in dispose (or in the case of the focusListener,
> registered via skin api).

@kleopatra Done!

-------------

PR: https://git.openjdk.java.net/jfx/pull/219


More information about the openjfx-dev mailing list