| 204 | } |
| 205 | |
| 206 | void Keyboard::detachIME() { |
| 207 | if (_imeHandler) { |
| 208 | Event detachEvent("DetachIME"_slice); |
| 209 | _imeHandler(&detachEvent); |
| 210 | _imeHandler = nullptr; |
| 211 | SharedApplication.invokeInRender(SDL_StopTextInput); |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | bool Keyboard::isIMEAttached() const { |
| 216 | return !_imeHandler.IsEmpty(); |
nothing calls this directly
no test coverage detected