Skip to content

Commit

Permalink
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 b5a4d1a commit 1cd89a7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified ChewingPreferences/ChewingPreferences.rc
Binary file not shown.
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_KB11, 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_KB11; ++id) {
for(UINT id = IDC_KB1; id <= IDC_KB15; ++id) {
if(IsDlgButtonChecked(hwnd_, id)) {
config_->keyboardLayout = (id - IDC_KB1);
break;
Expand Down
Binary file modified ChewingPreferences/resource.h
Binary file not shown.

0 comments on commit 1cd89a7

Please sign in to comment.