Darwin: 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.)
(cherry picked from commit 0d5dd5dffa
)
This commit is contained in:
parent
7f2972d47a
commit
4c18ef4331
|
@ -166,6 +166,9 @@ static void DarwinSimulateMouseClick(
|
|||
int modifierMask) // modifiers used for the fake click
|
||||
{
|
||||
// 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(KeyRelease, modifierMask);
|
||||
|
||||
// push the mouse button
|
||||
|
|
Loading…
Reference in New Issue
Block a user