Skip to content

Commit

Permalink
Show keyboard on mouse event. Focus change listener should be respons…
Browse files Browse the repository at this point in the history
…ible for hiding the keyboard only.
  • Loading branch information
Abhinay Agarwal committed Jun 25, 2020
1 parent 3024ddc commit 0aa7902
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,8 @@ public class TextAreaSkinAndroid extends TextAreaSkin {
};

private final ChangeListener<Boolean> focusChangeListener = (observable, wasFocused, isFocused) -> {
if (getSkinnable().isEditable()) {
if (isFocused) {
showSoftwareKeyboard();
} else {
hideSoftwareKeyboard();
}
if (wasFocused && !isFocused) {
hideSoftwareKeyboard();
}
};
private final WeakChangeListener<Boolean> weakFocusChangeListener = new WeakChangeListener<>(focusChangeListener);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,8 @@ public class TextFieldSkinAndroid extends TextFieldSkin {
};

private final ChangeListener<Boolean> focusChangeListener = (observable, wasFocused, isFocused) -> {
if (getSkinnable().isEditable()) {
if (isFocused) {
showSoftwareKeyboard();
} else {
hideSoftwareKeyboard();
}
if (wasFocused && !isFocused) {
hideSoftwareKeyboard();
}
};
private final WeakChangeListener<Boolean> weakFocusChangeListener = new WeakChangeListener<>(focusChangeListener);
Expand Down

0 comments on commit 0aa7902

Please sign in to comment.