Skip to content

Commit

Permalink
fixup! feat(prefs): enable new keyboard layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
kanru committed Aug 13, 2024
1 parent 26eef65 commit 1cedba2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ChewingPreferences/KeyboardPropertyPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1cedba2

Please sign in to comment.