Prefs // +enableMouseScrollingForTDKCandidatesCocoa.

This commit is contained in:
ShikiSuen 2023-02-27 19:43:44 +08:00
parent be8f7b5a22
commit 1bbc17d21f
3 changed files with 5 additions and 0 deletions

View File

@ -47,6 +47,7 @@ public protocol PrefMgrProtocol {
var onlyLoadFactoryLangModelsIfNeeded: Bool { get set }
var useIMKCandidateWindow: Bool { get set }
var enableSwiftUIForTDKCandidates: Bool { get set }
var enableMouseScrollingForTDKCandidatesCocoa: Bool { get set }
var disableSegmentedThickUnderlineInMarkingModeForManagedClients: Bool { get set }
var maxCandidateLength: Int { get set }
var shouldNotFartInLieuOfBeep: Bool { get set }

View File

@ -75,6 +75,7 @@ public enum UserDef: String, CaseIterable {
case kUseIMKCandidateWindow = "UseIMKCandidateWindow"
case kEnableSwiftUIForTDKCandidates = "EnableSwiftUIForTDKCandidates"
case kEnableMouseScrollingForTDKCandidatesCocoa = "EnableMouseScrollingForTDKCandidatesCocoa"
case kDisableSegmentedThickUnderlineInMarkingModeForManagedClients
= "DisableSegmentedThickUnderlineInMarkingModeForManagedClients"

View File

@ -188,6 +188,9 @@ public class PrefMgr: PrefMgrProtocol {
@AppProperty(key: UserDef.kEnableSwiftUIForTDKCandidates.rawValue, defaultValue: false)
public var enableSwiftUIForTDKCandidates: Bool
@AppProperty(key: UserDef.kEnableMouseScrollingForTDKCandidatesCocoa.rawValue, defaultValue: false)
public var enableMouseScrollingForTDKCandidatesCocoa: Bool
@AppProperty(
key: UserDef.kDisableSegmentedThickUnderlineInMarkingModeForManagedClients.rawValue,
defaultValue: false