Skip to content

Commit

Permalink
Disable non-English/non-QWERTY layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
CalcProgrammer1 committed Jul 10, 2023
1 parent fbeb2c1 commit 16efabc
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions KeyboardLayoutManager/KeyboardLayoutManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,26 +356,30 @@ KeyboardLayoutManager::KeyboardLayoutManager(KEYBOARD_LAYOUT layout, KEYBOARD_SI
tmp_name.append(KEYBOARD_NAME_QWERTY);
break;

case KEYBOARD_LAYOUT::KEYBOARD_LAYOUT_ISO_AZERTY:
ChangeKeys(iso_azerty);
tmp_name = KEYBOARD_NAME_AZERTY;
break;

case KEYBOARD_LAYOUT::KEYBOARD_LAYOUT_ISO_QWERTY:
ChangeKeys(iso_qwerty);
tmp_name = KEYBOARD_NAME_ISO;
tmp_name.append(KEYBOARD_NAME_QWERTY);
break;

case KEYBOARD_LAYOUT::KEYBOARD_LAYOUT_ISO_QWERTZ:
ChangeKeys(iso_qwertz);
tmp_name = KEYBOARD_NAME_QWERTZ;
break;

case KEYBOARD_LAYOUT::KEYBOARD_LAYOUT_JIS:
ChangeKeys(jis);
tmp_name = KEYBOARD_NAME_JIS;
break;
/*-------------------------------------------------*\
| Non-English, non-QWERTY layouts are disabled |
| until proper translation feature is implemented |
\*-------------------------------------------------*/
// case KEYBOARD_LAYOUT::KEYBOARD_LAYOUT_ISO_AZERTY:
// ChangeKeys(iso_azerty);
// tmp_name = KEYBOARD_NAME_AZERTY;
// break;

// case KEYBOARD_LAYOUT::KEYBOARD_LAYOUT_ISO_QWERTZ:
// ChangeKeys(iso_qwertz);
// tmp_name = KEYBOARD_NAME_QWERTZ;
// break;

// case KEYBOARD_LAYOUT::KEYBOARD_LAYOUT_JIS:
// ChangeKeys(jis);
// tmp_name = KEYBOARD_NAME_JIS;
// break;
}

/*---------------------------------------------------------------------*\
Expand Down

0 comments on commit 16efabc

Please sign in to comment.