Workaround for a bug where the holding down Command to make a "fake"
button 2 click would actually result in a Command-2 chord. (I.e. it wasn't releasing Command before clicking the fake button.)
This commit is contained in:
parent
13dd854431
commit
0d5dd5dffa
|
@ -162,6 +162,9 @@ static void DarwinSimulateMouseClick(
|
||||||
int modifierMask) // modifiers used for the fake click
|
int modifierMask) // modifiers used for the fake click
|
||||||
{
|
{
|
||||||
// first fool X into forgetting about the keys
|
// first fool X into forgetting about the keys
|
||||||
|
// for some reason, it's not enough to tell X we released the Command key --
|
||||||
|
// it has to be the *left* Command key.
|
||||||
|
if (modifierMask & NX_COMMANDMASK) modifierMask |=NX_DEVICELCMDKEYMASK ;
|
||||||
DarwinUpdateModifiers(xe, KeyRelease, modifierMask);
|
DarwinUpdateModifiers(xe, KeyRelease, modifierMask);
|
||||||
|
|
||||||
// push the mouse button
|
// push the mouse button
|
||||||
|
|
Loading…
Reference in New Issue
Block a user