diff --git a/Source/Modules/UIModules/PrefUI/VwrPrefPaneCandidates.swift b/Source/Modules/UIModules/PrefUI/VwrPrefPaneCandidates.swift index 7fac474e..b76f788a 100644 --- a/Source/Modules/UIModules/PrefUI/VwrPrefPaneCandidates.swift +++ b/Source/Modules/UIModules/PrefUI/VwrPrefPaneCandidates.swift @@ -32,6 +32,8 @@ struct VwrPrefPaneCandidates: View { forKey: UserDef.kConsolidateContextOnCandidateSelection.rawValue) @State private var selUseIMKCandidateWindow: Bool = UserDefaults.standard.bool( forKey: UserDef.kUseIMKCandidateWindow.rawValue) + @State private var selEnableMouseScrollingForTDKCandidatesCocoa: Bool = UserDefaults.standard.bool( + forKey: UserDef.kEnableMouseScrollingForTDKCandidatesCocoa.rawValue) @State private var selEnableSwiftUIForTDKCandidates: Bool = UserDefaults.standard.bool( forKey: UserDef.kEnableSwiftUIForTDKCandidates.rawValue) @State private var selAllowBoostingSingleKanjiAsUserPhrase: Bool = UserDefaults.standard.bool( @@ -188,6 +190,16 @@ struct VwrPrefPaneCandidates: View { ) ) .preferenceDescription().prefDescriptionWidthLimited() + Toggle( + LocalizedStringKey("Enable mouse wheel support for Tadokoro Candidate Window"), + isOn: $selEnableMouseScrollingForTDKCandidatesCocoa.onChange { + PrefMgr.shared.enableMouseScrollingForTDKCandidatesCocoa = + selEnableMouseScrollingForTDKCandidatesCocoa + } + ) + .disabled( + PrefMgr.shared.useIMKCandidateWindow || PrefMgr.shared.enableSwiftUIForTDKCandidates + ) Toggle( LocalizedStringKey("Enable experimental Swift UI typesetting method"), isOn: $selEnableSwiftUIForTDKCandidates.onChange { diff --git a/Source/Resources/Base.lproj/Localizable.strings b/Source/Resources/Base.lproj/Localizable.strings index 4eaa1d15..b171929c 100644 --- a/Source/Resources/Base.lproj/Localizable.strings +++ b/Source/Resources/Base.lproj/Localizable.strings @@ -249,6 +249,7 @@ "Enable cassette mode, suppressing phonabet input" = "Enable cassette mode, suppressing phonabet input"; "Enable CNS11643 Support (2023-01-06)" = "Enable CNS11643 Support (2023-01-06)"; "Enable experimental Swift UI typesetting method" = "Enable experimental Swift UI typesetting method"; +"Enable mouse wheel support for Tadokoro Candidate Window" = "Enable mouse wheel support for Tadokoro Candidate Window"; "Enable phrase replacement table" = "Enable phrase replacement table"; "Enable Space key for calling candidate window" = "Enable Space key for calling candidate window"; "Enable symbol input support (incl. certain emoji symbols)" = "Enable symbol input support (incl. certain emoji symbols)"; diff --git a/Source/Resources/en.lproj/Localizable.strings b/Source/Resources/en.lproj/Localizable.strings index 4eaa1d15..b171929c 100644 --- a/Source/Resources/en.lproj/Localizable.strings +++ b/Source/Resources/en.lproj/Localizable.strings @@ -249,6 +249,7 @@ "Enable cassette mode, suppressing phonabet input" = "Enable cassette mode, suppressing phonabet input"; "Enable CNS11643 Support (2023-01-06)" = "Enable CNS11643 Support (2023-01-06)"; "Enable experimental Swift UI typesetting method" = "Enable experimental Swift UI typesetting method"; +"Enable mouse wheel support for Tadokoro Candidate Window" = "Enable mouse wheel support for Tadokoro Candidate Window"; "Enable phrase replacement table" = "Enable phrase replacement table"; "Enable Space key for calling candidate window" = "Enable Space key for calling candidate window"; "Enable symbol input support (incl. certain emoji symbols)" = "Enable symbol input support (incl. certain emoji symbols)"; diff --git a/Source/Resources/ja.lproj/Localizable.strings b/Source/Resources/ja.lproj/Localizable.strings index 939244b0..f7556970 100644 --- a/Source/Resources/ja.lproj/Localizable.strings +++ b/Source/Resources/ja.lproj/Localizable.strings @@ -250,6 +250,7 @@ "Enable cassette mode, suppressing phonabet input" = "カセットモードを起用(注音入力はこのモードで使えぬ)"; "Enable CNS11643 Support (2023-01-06)" = "全字庫モード // 入力可能な漢字数を倍増す (2023-01-06)"; "Enable experimental Swift UI typesetting method" = "Swift UI 組版方法を起用する"; +"Enable mouse wheel support for Tadokoro Candidate Window" = "田所候補陳列ウィンドウのマウススクロール機能を起用"; "Enable phrase replacement table" = "言葉置換表を起用"; "Enable Space key for calling candidate window" = "Space キーで入力候補を呼び出す"; "Enable symbol input support (incl. certain emoji symbols)" = "僅かなる絵文字も含む符号入力サポートを起用"; diff --git a/Source/Resources/zh-Hans.lproj/Localizable.strings b/Source/Resources/zh-Hans.lproj/Localizable.strings index 930358d8..5e3c3ce6 100644 --- a/Source/Resources/zh-Hans.lproj/Localizable.strings +++ b/Source/Resources/zh-Hans.lproj/Localizable.strings @@ -249,6 +249,7 @@ "Enable cassette mode, suppressing phonabet input" = "启用磁带模式,会停用注音输入"; "Enable CNS11643 Support (2023-01-06)" = "启用 CNS11643 全字库支援 (2023-01-06)"; "Enable experimental Swift UI typesetting method" = "使用 Swift UI 介面排版方法"; +"Enable mouse wheel support for Tadokoro Candidate Window" = "启用田所选字窗的滑鼠滚动支援"; "Enable phrase replacement table" = "启用语汇置换表"; "Enable Space key for calling candidate window" = "敲空格键以呼出候选字窗"; "Enable symbol input support (incl. certain emoji symbols)" = "启用包括少许绘文字在内的符号输入支援"; diff --git a/Source/Resources/zh-Hant.lproj/Localizable.strings b/Source/Resources/zh-Hant.lproj/Localizable.strings index dbd3a087..63be46ff 100644 --- a/Source/Resources/zh-Hant.lproj/Localizable.strings +++ b/Source/Resources/zh-Hant.lproj/Localizable.strings @@ -249,6 +249,7 @@ "Enable cassette mode, suppressing phonabet input" = "啟用磁帶模式,會停用注音輸入"; "Enable CNS11643 Support (2023-01-06)" = "啟用 CNS11643 全字庫支援 (2023-01-06)"; "Enable experimental Swift UI typesetting method" = "使用 Swift UI 介面排版方法"; +"Enable mouse wheel support for Tadokoro Candidate Window" = "啟用田所選字窗的滑鼠滾動支援"; "Enable phrase replacement table" = "啟用語彙置換表"; "Enable Space key for calling candidate window" = "敲空格鍵以呼出候選字窗"; "Enable symbol input support (incl. certain emoji symbols)" = "啟用包括少許繪文字在內的符號輸入支援";