aboutsummaryrefslogtreecommitdiffstats
path: root/src/macterm.c
diff options
context:
space:
mode:
authorSteven Tamm <[email protected]>2004-06-29 06:23:08 +0000
committerSteven Tamm <[email protected]>2004-06-29 06:23:08 +0000
commitc61278bbde089da22d4a774fe348536c172c20da (patch)
tree0918ebf077e006133087dff48744fe0569f166f2 /src/macterm.c
parentc3762cbd4b8d9569291a20465315a024881eb17c (diff)
macterm.c (mac_get_emulated_btn)
(mac_event_to_emacs_modifiers): Fix emulated mouse button support to correctly mask out modifiers.
Diffstat (limited to 'src/macterm.c')
-rw-r--r--src/macterm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/macterm.c b/src/macterm.c
index bef37addaa..b9584be50b 100644
--- a/src/macterm.c
+++ b/src/macterm.c
@@ -7018,7 +7018,7 @@ mac_get_emulated_btn ( UInt32 modifiers )
int result = 0;
if (!NILP (Vmac_emulate_three_button_mouse)) {
int cmdIs3 = !EQ (Vmac_emulate_three_button_mouse, Qreverse);
- if (modifiers & controlKey)
+ if (modifiers & cmdKey)
result = cmdIs3 ? 2 : 1;
else if (modifiers & optionKey)
result = cmdIs3 ? 1 : 2;
@@ -7038,7 +7038,7 @@ mac_event_to_emacs_modifiers (EventRef eventRef)
if (!NILP (Vmac_emulate_three_button_mouse) &&
GetEventClass(eventRef) == kEventClassMouse)
{
- mods &= ~(optionKey & cmdKey);
+ mods &= ~(optionKey | cmdKey);
}
return mac_to_emacs_modifiers (mods);
}