This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

#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'.
  • Loading branch information...
ommokazza authored and nlyan committed Jan 25, 2017
1 parent 180d3e5 commit f35e3e5e06bbe14ec54be4e5d66585b4cef4a47a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lib/platform/MSWindowsKeyState.cpp
@@ -1076,7 +1076,7 @@ MSWindowsKeyState::getKeyMap(synergy::KeyMap& keyMap)
}
// set virtual key to button table
- if (GetKeyboardLayout(0) == m_groups[g]) {
+ if (activeLayout == m_groups[g]) {
for (KeyButton i = 0; i < 512; ++i) {
if (m_buttonToVK[i] != 0) {
if (m_virtualKeyToButton[m_buttonToVK[i]] == 0) {

0 comments on commit f35e3e5

Please sign in to comment.