From c5c99894a97c837c02706162d483c342e0ffb0bd Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Fri, 25 Aug 2023 03:16:58 +0800 Subject: [PATCH] SessionCtl // Check inputHandler's LM instead in handle(). --- .../Sources/MainAssembly/SessionCtl_HandleEvent.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packages/vChewing_MainAssembly/Sources/MainAssembly/SessionCtl_HandleEvent.swift b/Packages/vChewing_MainAssembly/Sources/MainAssembly/SessionCtl_HandleEvent.swift index cd334249..81e98275 100644 --- a/Packages/vChewing_MainAssembly/Sources/MainAssembly/SessionCtl_HandleEvent.swift +++ b/Packages/vChewing_MainAssembly/Sources/MainAssembly/SessionCtl_HandleEvent.swift @@ -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: "")