| 164 | } |
| 165 | |
| 166 | void InternalInputMethodContext::handleCommitString(const QString &text) |
| 167 | { |
| 168 | QObject *focusObject = QGuiApplication::focusObject(); |
| 169 | if (!focusObject) { |
| 170 | return; |
| 171 | } |
| 172 | |
| 173 | QInputMethodEvent event(QString(), {}); |
| 174 | event.setCommitString(text); |
| 175 | QCoreApplication::sendEvent(focusObject, &event); |
| 176 | } |
| 177 | |
| 178 | void InternalInputMethodContext::handleDeleteSurroundingText(int deleteBefore, uint deleteAfter) |
| 179 | { |