Skip to content

Commit

Permalink
Merge pull request #185 from chewing/kblayout
Browse files Browse the repository at this point in the history
Enable new keyboard layouts
  • Loading branch information
kanru authored Aug 13, 2024
2 parents 367f398 + 1cd89a7 commit ffa318e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 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.
2 changes: 1 addition & 1 deletion libchewing

0 comments on commit ffa318e

Please sign in to comment.