PrefUI // Add shareAlphanumericalModeStatusAcrossClients().

This commit is contained in:
ShikiSuen 2022-11-24 00:49:20 +08:00
parent 951cca4956
commit e71f9ea2a3
6 changed files with 13 additions and 0 deletions

View File

@ -50,6 +50,8 @@ struct VwrPrefPaneExperience: View {
forKey: UserDef.kAlwaysShowTooltipTextsHorizontally.rawValue)
@State private var selShowNotificationsWhenTogglingCapsLock = UserDefaults.standard.bool(
forKey: UserDef.kShowNotificationsWhenTogglingCapsLock.rawValue)
@State private var selShareAlphanumericalModeStatusAcrossClients = UserDefaults.standard.bool(
forKey: UserDef.kShareAlphanumericalModeStatusAcrossClients.rawValue)
private let contentMaxHeight: Double = 440
private let contentWidth: Double = {
@ -204,6 +206,12 @@ struct VwrPrefPaneExperience: View {
PrefMgr.shared.togglingAlphanumericalModeWithLShift = selTogglingAlphanumericalModeWithLShift
}
).disabled(PrefMgr.shared.disableShiftTogglingAlphanumericalMode == true)
Toggle(
LocalizedStringKey("Share alphanumerical mode status across all clients"),
isOn: $selShareAlphanumericalModeStatusAcrossClients.onChange {
PrefMgr.shared.shareAlphanumericalModeStatusAcrossClients = selShareAlphanumericalModeStatusAcrossClients
}
).disabled(PrefMgr.shared.disableShiftTogglingAlphanumericalMode == true)
}
SSPreferences.Section(title: "Caps Lock:") {
Toggle(

View File

@ -227,6 +227,7 @@
"Secondary Pinyin with Numeral Intonation" = "Secondary Pinyin with Numeral Intonation";
"Seigyou" = "Seigyou (JinYei)";
"Selection Keys:" = "Selection Keys:";
"Share alphanumerical mode status across all clients" = "Share alphanumerical mode status across all clients";
"Shift+BackSpace:" = "Shift+BackSpace:";
"Shift+Letter:" = "Shift+Letter:";
"Show available reverse-lookup results in candidate window" = "Show available reverse-lookup results in candidate window";

View File

@ -227,6 +227,7 @@
"Secondary Pinyin with Numeral Intonation" = "Secondary Pinyin with Numeral Intonation";
"Seigyou" = "Seigyou (JinYei)";
"Selection Keys:" = "Selection Keys:";
"Share alphanumerical mode status across all clients" = "Share alphanumerical mode status across all clients";
"Shift+BackSpace:" = "Shift+BackSpace:";
"Shift+Letter:" = "Shift+Letter:";
"Show available reverse-lookup results in candidate window" = "Show available reverse-lookup results in candidate window";

View File

@ -227,6 +227,7 @@
"Secondary Pinyin with Numeral Intonation" = "国音二式 (ローマ字+数字音調)";
"Seigyou" = "精業配列";
"Selection Keys:" = "言選り用キー:";
"Share alphanumerical mode status across all clients" = "全ての客体アプリに英数入力モードの状態を共有";
"Shift+BackSpace:" = "Shift+BackSpace:";
"Shift+Letter:" = "Shift+文字キー:";
"Show available reverse-lookup results in candidate window" = "候補陳列ウィンドウで可能な逆引参照結果を示す";

View File

@ -227,6 +227,7 @@
"Secondary Pinyin with Numeral Intonation" = "国音二式+数字标调";
"Seigyou" = "精业排列";
"Selection Keys:" = "选字键:";
"Share alphanumerical mode status across all clients" = "对所有客体应用共用 Shift 中英文输入切换状态";
"Shift+BackSpace:" = "Shift+退格键:";
"Shift+Letter:" = "Shift+字母键:";
"Show available reverse-lookup results in candidate window" = "在选字窗内显示可用的字根反查结果";

View File

@ -227,6 +227,7 @@
"Secondary Pinyin with Numeral Intonation" = "國音二式+數字標調";
"Seigyou" = "精業排列";
"Selection Keys:" = "選字鍵:";
"Share alphanumerical mode status across all clients" = "對所有客體應用共用 Shift 中英文輸入切換狀態";
"Shift+BackSpace:" = "Shift+退格鍵:";
"Shift+Letter:" = "Shift+字母鍵:";
"Show available reverse-lookup results in candidate window" = "在選字窗內顯示可用的字根反查結果";