#5578 Virtual key table mapped for inactive IMEs

Virtual key table is mapped for all IMEs not just active IME.

And this causes the wrong modifier key to be pressed. For example, if you use Korean and Japanese IMEs, pressing the Hangul key makes alt key pressed. So when I press just 'a', client interprets that as 'alt-a'.
This commit is contained in:
Jiwoong Yoo 2017-01-26 06:07:44 +09:00 committed by Andrew Nelless
parent 180d3e57d2
commit f35e3e5e06
1 changed files with 1 additions and 1 deletions

View File

@ -1076,7 +1076,7 @@ MSWindowsKeyState::getKeyMap(synergy::KeyMap& keyMap)
} }
// set virtual key to button table // set virtual key to button table
if (GetKeyboardLayout(0) == m_groups[g]) { if (activeLayout == m_groups[g]) {
for (KeyButton i = 0; i < 512; ++i) { for (KeyButton i = 0; i < 512; ++i) {
if (m_buttonToVK[i] != 0) { if (m_buttonToVK[i] != 0) {
if (m_virtualKeyToButton[m_buttonToVK[i]] == 0) { if (m_virtualKeyToButton[m_buttonToVK[i]] == 0) {