summaryrefslogtreecommitdiff
path: root/plugins/ChangeKeyboardLayout/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ChangeKeyboardLayout/src/main.cpp')
-rw-r--r--plugins/ChangeKeyboardLayout/src/main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/ChangeKeyboardLayout/src/main.cpp b/plugins/ChangeKeyboardLayout/src/main.cpp
index fc27d27f9f..9e7a817e53 100644
--- a/plugins/ChangeKeyboardLayout/src/main.cpp
+++ b/plugins/ChangeKeyboardLayout/src/main.cpp
@@ -10,9 +10,6 @@ HHOOK kbHook_All;
MainOptions moOptions;
PopupOptions poOptions;
-LPCTSTR ptszKeybEng = L"`1234567890- = \\qwertyuiop[]asdfghjkl;'zxcvbnm,./~!@#$%^&*()_+|QWERTYUIOP{}ASDFGHJKL:\"ZXCVBNM<>?";
-HKL hklEng = (HKL)0x04090409;
-
LPCTSTR ptszSeparators = L" \t\n\r";
HANDLE hOptionsInitialize;
@@ -50,6 +47,10 @@ int CMPlugin::Load()
if (bLayNum < 2)
return 1;
+ for (int i = 0; i < bLayNum; i++)
+ if ((UINT_PTR(hklLayouts[i]) & 0xFFFF) == 0x409)
+ hklEng = hklLayouts[i];
+
HookEvent(ME_OPT_INITIALISE, OnOptionsInitialise);
HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoaded);