PrefUI // Tweak .shareAlphanumericalModeStatusAcrossClients().
This commit is contained in:
parent
0502be50b9
commit
21b22b02e8
|
@ -438,7 +438,8 @@ public extension UserDef {
|
||||||
userDef: self, shortTitle: "Auto-composite when the longest possible key is formed"
|
userDef: self, shortTitle: "Auto-composite when the longest possible key is formed"
|
||||||
)
|
)
|
||||||
case .kShareAlphanumericalModeStatusAcrossClients: return .init(
|
case .kShareAlphanumericalModeStatusAcrossClients: return .init(
|
||||||
userDef: self, shortTitle: "Share alphanumerical mode status across all clients"
|
userDef: self, shortTitle: "Share alphanumerical mode status across all clients",
|
||||||
|
description: "This only works when being toggled by Shift key and JIS Eisu key."
|
||||||
)
|
)
|
||||||
case .kPhraseEditorAutoReloadExternalModifications: return .init(
|
case .kPhraseEditorAutoReloadExternalModifications: return .init(
|
||||||
userDef: self, shortTitle: "This editor only: Auto-reload modifications happened outside of this editor"
|
userDef: self, shortTitle: "This editor only: Auto-reload modifications happened outside of this editor"
|
||||||
|
|
|
@ -204,17 +204,19 @@ struct VwrPrefPaneBehavior: View {
|
||||||
SessionCtl.theShiftKeyDetector.toggleWithRShift = togglingAlphanumericalModeWithRShift
|
SessionCtl.theShiftKeyDetector.toggleWithRShift = togglingAlphanumericalModeWithRShift
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
Toggle(
|
|
||||||
LocalizedStringKey("Share alphanumerical mode status across all clients"),
|
|
||||||
isOn: $shareAlphanumericalModeStatusAcrossClients
|
|
||||||
).disabled(
|
|
||||||
!togglingAlphanumericalModeWithRShift && !togglingAlphanumericalModeWithLShift
|
|
||||||
)
|
|
||||||
Text(
|
Text(
|
||||||
"This feature requires macOS 10.15 and above.".localized + CtlPrefUIShared.sentenceSeparator
|
"This feature requires macOS 10.15 and above.".localized + CtlPrefUIShared.sentenceSeparator
|
||||||
+ "This feature only needs to parse consecutive NSEvents passed by macOS built-in InputMethodKit framework, hence no necessity of asking end-users for extra privileges of monitoring global keyboard inputs. You are free to investigate our codebase or reverse-engineer this input method to see whether the above statement is trustable.".localized
|
+ "This feature only needs to parse consecutive NSEvents passed by macOS built-in InputMethodKit framework, hence no necessity of asking end-users for extra privileges of monitoring global keyboard inputs. You are free to investigate our codebase or reverse-engineer this input method to see whether the above statement is trustable.".localized
|
||||||
)
|
)
|
||||||
.preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth)
|
.preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth)
|
||||||
|
Toggle(
|
||||||
|
LocalizedStringKey("Share alphanumerical mode status across all clients"),
|
||||||
|
isOn: $shareAlphanumericalModeStatusAcrossClients
|
||||||
|
).controlSize(.small)
|
||||||
|
Text(
|
||||||
|
"This only works when being toggled by Shift key and JIS Eisu key.".localized
|
||||||
|
)
|
||||||
|
.preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth)
|
||||||
}
|
}
|
||||||
SSPreferences.Settings.Section(title: "Caps Lock:", bottomDivider: true) {
|
SSPreferences.Settings.Section(title: "Caps Lock:", bottomDivider: true) {
|
||||||
Toggle(
|
Toggle(
|
||||||
|
|
Loading…
Reference in New Issue