#2765 Fixed wrong bit shifting to match OSX modifier mask

This commit is contained in:
Jerry (Xinyu Hou) 2016-08-11 17:01:09 +01:00 committed by Andrew Nelless
parent 57950d39a3
commit 7a0fae2f6c
1 changed files with 2 additions and 2 deletions

View File

@ -698,10 +698,10 @@ OSXKeyState::getKeyMap(synergy::KeyMap& keyMap,
}
// now add a key entry for each key/required modifier pair.
item.m_sensitive = mapModifiersFromOSX(sensitive << 8);
item.m_sensitive = mapModifiersFromOSX(sensitive << 16);
for (std::set<UInt32>::iterator k = required.begin();
k != required.end(); ++k) {
item.m_required = mapModifiersFromOSX(*k << 8);
item.m_required = mapModifiersFromOSX(*k << 16);
keyMap.addKeyEntry(item);
}
}