From 16efabcce63bf1fdc6df592a99c78c610a48f38a Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Tue, 4 Jul 2023 02:16:19 -0500 Subject: [PATCH] Disable non-English/non-QWERTY layouts --- .../KeyboardLayoutManager.cpp | 32 +++++++++++-------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/KeyboardLayoutManager/KeyboardLayoutManager.cpp b/KeyboardLayoutManager/KeyboardLayoutManager.cpp index f250325c1..94b6ca03c 100644 --- a/KeyboardLayoutManager/KeyboardLayoutManager.cpp +++ b/KeyboardLayoutManager/KeyboardLayoutManager.cpp @@ -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; } /*---------------------------------------------------------------------*\