ctlIME // Attempt to fix crash when calling activateServer().

This commit is contained in:
ShikiSuen 2022-07-21 17:32:40 +08:00
parent bfc9426269
commit 922a0d0345
1 changed files with 4 additions and 0 deletions

View File

@ -96,6 +96,10 @@ class ctlInputMethod: IMKInputController {
_ = sender //
UserDefaults.standard.synchronize()
// activateServer nil
//
if keyHandler.delegate == nil { keyHandler.delegate = self }
keyHandler.clear()
keyHandler.ensureParser()