| 151 | }; |
| 152 | |
| 153 | void TextInputNode::onTextFieldAttachWithIME() |
| 154 | { |
| 155 | if (_displayedLabel && _cursor) |
| 156 | { |
| 157 | if (_textField->getString().empty()) |
| 158 | { |
| 159 | _displayedLabel->setString(""); |
| 160 | updateDisplayedLabelScale(); |
| 161 | } |
| 162 | else |
| 163 | { |
| 164 | _textField->setString(sanitizeString(_textField->getString())); |
| 165 | updateDisplayedLabel(); |
| 166 | } |
| 167 | |
| 168 | _cursor->setVisible(true); |
| 169 | } |
| 170 | |
| 171 | if (_delegate) |
| 172 | _delegate->textInputOpened(this); |
| 173 | } |
| 174 | |
| 175 | void TextInputNode::onTextFieldDetachWithIME() |
| 176 | { |
nothing calls this directly
no test coverage detected