Prefs // Add acceptLeadingIntonations().

This commit is contained in:
ShikiSuen 2023-05-05 13:29:21 +08:00
parent 628e062e41
commit 7fb48357c4
3 changed files with 5 additions and 0 deletions

View File

@ -68,6 +68,7 @@ public protocol PrefMgrProtocol {
var currencyNumeralsEnabled: Bool { get set }
var halfWidthPunctuationEnabled: Bool { get set }
var escToCleanInputBuffer: Bool { get set }
var acceptLeadingIntonations: Bool { get set }
var specifyIntonationKeyBehavior: Int { get set }
var specifyShiftBackSpaceKeyBehavior: Int { get set }
var specifyShiftTabKeyBehavior: Bool { get set }

View File

@ -41,6 +41,7 @@ public enum UserDef: String, CaseIterable {
case kHalfWidthPunctuationEnabled = "HalfWidthPunctuationEnable"
case kMoveCursorAfterSelectingCandidate = "MoveCursorAfterSelectingCandidate"
case kEscToCleanInputBuffer = "EscToCleanInputBuffer"
case kAcceptLeadingIntonations = "AcceptLeadingIntonations"
case kSpecifyIntonationKeyBehavior = "SpecifyIntonationKeyBehavior"
case kSpecifyShiftBackSpaceKeyBehavior = "SpecifyShiftBackSpaceKeyBehavior"
case kSpecifyShiftTabKeyBehavior = "SpecifyShiftTabKeyBehavior"

View File

@ -273,6 +273,9 @@ public class PrefMgr: PrefMgrProtocol {
@AppProperty(key: UserDef.kEscToCleanInputBuffer.rawValue, defaultValue: true)
public var escToCleanInputBuffer: Bool
@AppProperty(key: UserDef.kAcceptLeadingIntonations.rawValue, defaultValue: true)
public var acceptLeadingIntonations: Bool
@AppProperty(key: UserDef.kSpecifyIntonationKeyBehavior.rawValue, defaultValue: 0)
public var specifyIntonationKeyBehavior: Int