Skip to content

Commit

Permalink
Ignore by SendLevel when setting the modifier state for generated input.
Browse files Browse the repository at this point in the history
Fixes this bug: when sending something like ^a from an elevated SendLevel,
the ctrl key would still be ignored at lower levels.
  • Loading branch information
russelldavis committed Jan 8, 2012
1 parent 23049fa commit 0522a70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/keyboard_mouse.cpp
Expand Up @@ -1028,7 +1028,7 @@ void SendKey(vk_type aVK, sc_type aSC, modLR_type aModifiersLR, modLR_type aModi
// both hooks so that the Start Menu doesn't appear when the Win key is released, so we're
// not responsible for that type of disguising here.
SetModifierLRState(modifiersLR_specified, sSendMode ? sEventModifiersLR : GetModifierLRState()
, aTargetWindow, false, true, KEY_IGNORE); // See keyboard_mouse.h for explanation of KEY_IGNORE.
, aTargetWindow, false, true, KEY_IGNORE_LEVEL(g->SendLevel)); // See keyboard_mouse.h for explanation of KEY_IGNORE.
// SetModifierLRState() also does DoKeyDelay(g->PressDuration).
}

Expand Down

0 comments on commit 0522a70

Please sign in to comment.