diff --git a/Source/Modules/IMEModules/ctlInputMethod.swift b/Source/Modules/IMEModules/ctlInputMethod.swift index 3433a0a5..4ff56ecd 100644 --- a/Source/Modules/IMEModules/ctlInputMethod.swift +++ b/Source/Modules/IMEModules/ctlInputMethod.swift @@ -197,6 +197,13 @@ class ctlInputMethod: IMKInputController { } return result } + + // 有時會出現某些 App 攔截輸入法的 Ctrl+Enter / Shift+Enter 熱鍵的情況。 + // 也就是說 handle(event:) 完全抓不到這個 Event。 + // 這時需要在 commitComposition 這一關做一些收尾處理。 + override func commitComposition(_ sender: Any!) { + resetKeyHandler(client: sender) + } } // MARK: - State Handling