From 1cedba203eda36ae9f35e092f5d0da3065c5f87a Mon Sep 17 00:00:00 2001 From: Kan-Ru Chen Date: Wed, 14 Aug 2024 07:57:23 +0900 Subject: [PATCH] fixup! feat(prefs): enable new keyboard layouts --- ChewingPreferences/KeyboardPropertyPage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ChewingPreferences/KeyboardPropertyPage.cpp b/ChewingPreferences/KeyboardPropertyPage.cpp index 151f522..8e7f3a0 100644 --- a/ChewingPreferences/KeyboardPropertyPage.cpp +++ b/ChewingPreferences/KeyboardPropertyPage.cpp @@ -34,13 +34,13 @@ KeyboardPropertyPage::~KeyboardPropertyPage(void) { // virtual bool KeyboardPropertyPage::onInitDialog() { - CheckRadioButton(hwnd_, IDC_KB1, IDC_KB12, IDC_KB1 + config_->keyboardLayout); + CheckRadioButton(hwnd_, IDC_KB1, IDC_KB15, IDC_KB1 + config_->keyboardLayout); return PropertyPage::onInitDialog(); } // virtual void KeyboardPropertyPage::onOK() { - for(UINT id = IDC_KB1; id <= IDC_KB12; ++id) { + for(UINT id = IDC_KB1; id <= IDC_KB15; ++id) { if(IsDlgButtonChecked(hwnd_, id)) { config_->keyboardLayout = (id - IDC_KB1); break;