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

Abhinay Agarwal github.com+3197675+abhinayagarwal at openjdk.java.net
Thu Jul 30 08:37:11 UTC 2020


On Thu, 14 May 2020 19:22:54 GMT, Abhinay Agarwal <github.com+3197675+abhinayagarwal 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.

This pull request has now been integrated.

Changeset: 5d34d724
Author:    Abhinay Agarwal <abhinay.agarwal at gluonhq.com>
Committer: Johan Vos <jvos at openjdk.org>
URL:       https://git.openjdk.java.net/jfx/commit/5d34d724
Stats:     93 lines in 2 files changed: 6 ins; 63 del; 24 mod

8245053: Keyboard doesn't show when TextInputControl has focus

Reviewed-by: jvos

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

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


More information about the openjfx-dev mailing list