PrefMgr // Add shareAlphanumericalModeStatusAcrossClients().
This commit is contained in:
parent
e8bb808836
commit
951cca4956
|
@ -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 }
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -20,6 +20,7 @@ extension PrefMgr {
|
|||
disableShiftTogglingAlphanumericalMode = true
|
||||
togglingAlphanumericalModeWithLShift = false
|
||||
showReverseLookupInCandidateUI = false
|
||||
shareAlphanumericalModeStatusAcrossClients = false
|
||||
}
|
||||
// 自動糾正選字鍵 (利用其 didSet 特性)
|
||||
candidateKeys = candidateKeys
|
||||
|
|
Loading…
Reference in New Issue