PrefMgr // Add shareAlphanumericalModeStatusAcrossClients().

This commit is contained in:
ShikiSuen 2022-11-24 00:28:02 +08:00
parent e8bb808836
commit 951cca4956
4 changed files with 6 additions and 0 deletions

View File

@ -53,6 +53,7 @@ public protocol PrefMgrProtocol {
var forceCassetteChineseConversion: Int { get set }
var showReverseLookupInCandidateUI: Bool { get set }
var autoCompositeWithLongestPossibleCassetteKey: Bool { get set }
var shareAlphanumericalModeStatusAcrossClients: Bool { get set }
var cns11643Enabled: Bool { get set }
var cassetteEnabled: Bool { get set }
var symbolInputEnabled: Bool { get set }

View File

@ -66,6 +66,7 @@ public enum UserDef: String, CaseIterable {
case kForceCassetteChineseConversion = "ForceCassetteChineseConversion"
case kShowReverseLookupInCandidateUI = "ShowReverseLookupInCandidateUI"
case kAutoCompositeWithLongestPossibleCassetteKey = "AutoCompositeWithLongestPossibleCassetteKey"
case kShareAlphanumericalModeStatusAcrossClients = "ShareAlphanumericalModeStatusAcrossClients"
case kUseIMKCandidateWindow = "UseIMKCandidateWindow"
case kHandleDefaultCandidateFontsByLangIdentifier = "HandleDefaultCandidateFontsByLangIdentifier"

View File

@ -152,6 +152,9 @@ public class PrefMgr: PrefMgrProtocol {
@AppProperty(key: UserDef.kAutoCompositeWithLongestPossibleCassetteKey.rawValue, defaultValue: true)
public var autoCompositeWithLongestPossibleCassetteKey: Bool
@AppProperty(key: UserDef.kShareAlphanumericalModeStatusAcrossClients.rawValue, defaultValue: false)
public var shareAlphanumericalModeStatusAcrossClients: Bool
// MARK: - Settings (Tier 2)
@AppProperty(key: UserDef.kUseIMKCandidateWindow.rawValue, defaultValue: false)

View File

@ -20,6 +20,7 @@ extension PrefMgr {
disableShiftTogglingAlphanumericalMode = true
togglingAlphanumericalModeWithLShift = false
showReverseLookupInCandidateUI = false
shareAlphanumericalModeStatusAcrossClients = false
}
// ( didSet )
candidateKeys = candidateKeys