SessionCtl // Show correct indicators for certain modifiers.

This commit is contained in:
ShikiSuen 2023-06-20 19:07:12 +08:00
parent a53f96ee2f
commit 78ce8aef1d
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ public extension SessionCtl {
candidateUI?.tooltip = candidateUI?.tooltip =
singleLine ? "" : NSLocalizedString("Hold ⇧ to choose associates.", comment: "") singleLine ? "" : NSLocalizedString("Hold ⇧ to choose associates.", comment: "")
} else if state.type == .ofInputting, state.isCandidateContainer { } else if state.type == .ofInputting, state.isCandidateContainer {
let useShift = !PrefMgr.shared.autoCompositeWithLongestPossibleCassetteKey let useShift = LMMgr.currentLM.areCassetteCandidateKeysShiftPressed
let theEmoji = useShift ? "⬆️" : "⚡️" let theEmoji = useShift ? "⬆️" : "⚡️"
candidateUI?.tooltip = candidateUI?.tooltip =
singleLine ? theEmoji : "\(theEmoji) " + NSLocalizedString("Quick Candidates", comment: "") singleLine ? theEmoji : "\(theEmoji) " + NSLocalizedString("Quick Candidates", comment: "")