Fixed Issue 30: Synergy messes with umlauts and other silent keys

This commit is contained in:
sveith 2009-04-09 14:59:46 +00:00
parent 9f75415a1f
commit df0fd3d916
1 changed files with 9 additions and 0 deletions

View File

@ -359,6 +359,15 @@ doKeyboardHookHandler(WPARAM wParam, LPARAM lParam)
switch (n) { switch (n) {
default: default:
// key is a dead key // key is a dead key
if(lParam & 0x80000000u)
// This handles the obscure situation where a key has been
// pressed which is both a dead key and a normal character
// depending on which modifiers have been pressed. We
// break here to prevent it from being considered a dead
// key.
break;
g_deadVirtKey = wParam; g_deadVirtKey = wParam;
g_deadLParam = lParam; g_deadLParam = lParam;
for (size_t i = 0; i < sizeof(keys) / sizeof(keys[0]); ++i) { for (size_t i = 0; i < sizeof(keys) / sizeof(keys[0]); ++i) {