diff --git a/Source/Modules/ControllerModules/ctlInputMethod_HandleDisplay.swift b/Source/Modules/ControllerModules/ctlInputMethod_HandleDisplay.swift index 11f92abd..248e60c5 100644 --- a/Source/Modules/ControllerModules/ctlInputMethod_HandleDisplay.swift +++ b/Source/Modules/ControllerModules/ctlInputMethod_HandleDisplay.swift @@ -107,7 +107,9 @@ extension ctlInputMethod { ctlInputMethod.ctlCandidateCurrent.reloadData() // Spotlight 視窗會擋住 IMK 選字窗,所以需要特殊處理。 - if let ctlCandidateCurrent = ctlInputMethod.ctlCandidateCurrent as? ctlCandidateIMK { + if let ctlCandidateCurrent = ctlInputMethod.ctlCandidateCurrent as? ctlCandidateIMK, + mgrPrefs.adjustIMKCandidateWindowLevel + { ctlCandidateCurrent.perform(Selector(("setWindowLevel:")), with: client.windowLevel() + 1000) }