diff --git a/Source/Modules/UIModules/PrefUI/VwrPrefPaneExperience.swift b/Source/Modules/UIModules/PrefUI/VwrPrefPaneExperience.swift index be8ad55c..a3ee34bd 100644 --- a/Source/Modules/UIModules/PrefUI/VwrPrefPaneExperience.swift +++ b/Source/Modules/UIModules/PrefUI/VwrPrefPaneExperience.swift @@ -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( diff --git a/Source/Resources/Base.lproj/Localizable.strings b/Source/Resources/Base.lproj/Localizable.strings index d455dc1d..c7703854 100644 --- a/Source/Resources/Base.lproj/Localizable.strings +++ b/Source/Resources/Base.lproj/Localizable.strings @@ -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"; diff --git a/Source/Resources/en.lproj/Localizable.strings b/Source/Resources/en.lproj/Localizable.strings index d455dc1d..c7703854 100644 --- a/Source/Resources/en.lproj/Localizable.strings +++ b/Source/Resources/en.lproj/Localizable.strings @@ -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"; diff --git a/Source/Resources/ja.lproj/Localizable.strings b/Source/Resources/ja.lproj/Localizable.strings index 03d9e5a8..0707093f 100644 --- a/Source/Resources/ja.lproj/Localizable.strings +++ b/Source/Resources/ja.lproj/Localizable.strings @@ -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" = "候補陳列ウィンドウで可能な逆引参照結果を示す"; diff --git a/Source/Resources/zh-Hans.lproj/Localizable.strings b/Source/Resources/zh-Hans.lproj/Localizable.strings index 4365d3b2..ec23b413 100644 --- a/Source/Resources/zh-Hans.lproj/Localizable.strings +++ b/Source/Resources/zh-Hans.lproj/Localizable.strings @@ -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" = "在选字窗内显示可用的字根反查结果"; diff --git a/Source/Resources/zh-Hant.lproj/Localizable.strings b/Source/Resources/zh-Hant.lproj/Localizable.strings index e43487e0..8a94d388 100644 --- a/Source/Resources/zh-Hant.lproj/Localizable.strings +++ b/Source/Resources/zh-Hant.lproj/Localizable.strings @@ -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" = "在選字窗內顯示可用的字根反查結果";