SessionCtl // Check inputHandler's LM instead in handle().

This commit is contained in:
ShikiSuen 2023-08-25 03:16:58 +08:00
parent c95b5cbda7
commit c5c99894a9
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ public extension SessionCtl {
guard let inputHandler = inputHandler, client() != nil else { return false }
///
if !LMMgr.currentLM.isCoreLMLoaded {
if !inputHandler.currentLM.isCoreLMLoaded {
if (event as InputSignalProtocol).isReservedKey { return false }
var newState: IMEStateProtocol = IMEState.ofEmpty()
newState.tooltip = NSLocalizedString("Factory dictionary not loaded yet.", comment: "")