@@ -120,41 +120,10 @@ private void handleFocusChange() {
120
120
TextField textField = getNode ();
121
121
122
122
if (textField .isFocused ()) {
123
- if (PlatformUtil .isIOS ()) {
124
- // special handling of focus on iOS is required to allow to
125
- // control native keyboard, because nat. keyboard is poped-up only when native
126
- // text component gets focus. When we have JFX keyboard we can remove this code
127
- TextInputTypes type = TextInputTypes .TEXT_FIELD ;
128
- if (textField .getClass ().equals (javafx .scene .control .PasswordField .class )) {
129
- type = TextInputTypes .PASSWORD_FIELD ;
130
- } else if (textField .getParent ().getClass ().equals (javafx .scene .control .ComboBox .class )) {
131
- type = TextInputTypes .EDITABLE_COMBO ;
132
- }
133
- final Bounds bounds = textField .getBoundsInParent ();
134
- double w = bounds .getWidth ();
135
- double h = bounds .getHeight ();
136
- Affine3D trans = calculateNodeToSceneTransform (textField );
137
- // Insets insets = skin.getInsets();
138
- // w -= insets.getLeft() + insets.getRight();
139
- // h -= insets.getTop() + insets.getBottom();
140
- String text = textField .getText ();
141
-
142
- // we need to display native text input component on the place where JFX component is drawn
143
- // all parameters needed to do that are passed to native impl. here
144
- WindowHelper .getPeer (textField .getScene ().getWindow ()).requestInput (
145
- text , type .ordinal (), w , h ,
146
- trans .getMxx (), trans .getMxy (), trans .getMxz (), trans .getMxt (),// + insets.getLeft(),
147
- trans .getMyx (), trans .getMyy (), trans .getMyz (), trans .getMyt (),// + insets.getTop(),
148
- trans .getMzx (), trans .getMzy (), trans .getMzz (), trans .getMzt ());
149
- }
150
123
if (!focusGainedByMouseClick ) {
151
124
setCaretAnimating (true );
152
125
}
153
126
} else {
154
- if (PlatformUtil .isIOS () && textField .getScene () != null ) {
155
- // releasing the focus => we need to hide the native component and also native keyboard
156
- WindowHelper .getPeer (textField .getScene ().getWindow ()).releaseInput ();
157
- }
158
127
focusGainedByMouseClick = false ;
159
128
setCaretAnimating (false );
160
129
}
0 commit comments