Prefs // +classicHaninKeyboardSymbolModeShortcutEnabled.

This commit is contained in:
ShikiSuen 2023-02-12 15:55:54 +08:00
parent af386b25c8
commit b87c9071ca
3 changed files with 5 additions and 0 deletions

View File

@ -55,6 +55,7 @@ public protocol PrefMgrProtocol {
var autoCompositeWithLongestPossibleCassetteKey: Bool { get set } var autoCompositeWithLongestPossibleCassetteKey: Bool { get set }
var shareAlphanumericalModeStatusAcrossClients: Bool { get set } var shareAlphanumericalModeStatusAcrossClients: Bool { get set }
var phraseEditorAutoReloadExternalModifications: Bool { get set } var phraseEditorAutoReloadExternalModifications: Bool { get set }
var classicHaninKeyboardSymbolModeShortcutEnabled: Bool { get set }
var cns11643Enabled: Bool { get set } var cns11643Enabled: Bool { get set }
var cassetteEnabled: Bool { get set } var cassetteEnabled: Bool { get set }
var symbolInputEnabled: Bool { get set } var symbolInputEnabled: Bool { get set }

View File

@ -69,6 +69,7 @@ public enum UserDef: String, CaseIterable {
case kAutoCompositeWithLongestPossibleCassetteKey = "AutoCompositeWithLongestPossibleCassetteKey" case kAutoCompositeWithLongestPossibleCassetteKey = "AutoCompositeWithLongestPossibleCassetteKey"
case kShareAlphanumericalModeStatusAcrossClients = "ShareAlphanumericalModeStatusAcrossClients" case kShareAlphanumericalModeStatusAcrossClients = "ShareAlphanumericalModeStatusAcrossClients"
case kPhraseEditorAutoReloadExternalModifications = "PhraseEditorAutoReloadExternalModifications" case kPhraseEditorAutoReloadExternalModifications = "PhraseEditorAutoReloadExternalModifications"
case kClassicHaninKeyboardSymbolModeShortcutEnabled = "ClassicHaninKeyboardSymbolModeShortcutEnabled"
case kUseIMKCandidateWindow = "UseIMKCandidateWindow" case kUseIMKCandidateWindow = "UseIMKCandidateWindow"
case kHandleDefaultCandidateFontsByLangIdentifier = "HandleDefaultCandidateFontsByLangIdentifier" case kHandleDefaultCandidateFontsByLangIdentifier = "HandleDefaultCandidateFontsByLangIdentifier"

View File

@ -171,6 +171,9 @@ public class PrefMgr: PrefMgrProtocol {
@AppProperty(key: UserDef.kPhraseEditorAutoReloadExternalModifications.rawValue, defaultValue: true) @AppProperty(key: UserDef.kPhraseEditorAutoReloadExternalModifications.rawValue, defaultValue: true)
public var phraseEditorAutoReloadExternalModifications: Bool public var phraseEditorAutoReloadExternalModifications: Bool
@AppProperty(key: UserDef.kClassicHaninKeyboardSymbolModeShortcutEnabled.rawValue, defaultValue: false)
public var classicHaninKeyboardSymbolModeShortcutEnabled: Bool
// MARK: - Settings (Tier 2) // MARK: - Settings (Tier 2)
@AppProperty(key: UserDef.kUseIMKCandidateWindow.rawValue, defaultValue: false) @AppProperty(key: UserDef.kUseIMKCandidateWindow.rawValue, defaultValue: false)