(self, forced)
| 338 | # 切換到其他應用程式或其他原因,導致我們的輸入法被強制關閉,此時 |
| 339 | # forced 參數會是 True,在這種狀況下,要清除一些 buffer |
| 340 | def onCompositionTerminated(self, forced): |
| 341 | TextService.onCompositionTerminated(self, forced) |
| 342 | if forced: |
| 343 | # 中文組字到一半被系統強制關閉,清除編輯區內容 |
| 344 | self.destroySession() |
nothing calls this directly
no test coverage detected