7018 |
int result = 0; |
int result = 0; |
7019 |
if (!NILP (Vmac_emulate_three_button_mouse)) { |
if (!NILP (Vmac_emulate_three_button_mouse)) { |
7020 |
int cmdIs3 = !EQ (Vmac_emulate_three_button_mouse, Qreverse); |
int cmdIs3 = !EQ (Vmac_emulate_three_button_mouse, Qreverse); |
7021 |
if (modifiers & controlKey) |
if (modifiers & cmdKey) |
7022 |
result = cmdIs3 ? 2 : 1; |
result = cmdIs3 ? 2 : 1; |
7023 |
else if (modifiers & optionKey) |
else if (modifiers & optionKey) |
7024 |
result = cmdIs3 ? 1 : 2; |
result = cmdIs3 ? 1 : 2; |
7038 |
if (!NILP (Vmac_emulate_three_button_mouse) && |
if (!NILP (Vmac_emulate_three_button_mouse) && |
7039 |
GetEventClass(eventRef) == kEventClassMouse) |
GetEventClass(eventRef) == kEventClassMouse) |
7040 |
{ |
{ |
7041 |
mods &= ~(optionKey & cmdKey); |
mods &= ~(optionKey | cmdKey); |
7042 |
} |
} |
7043 |
return mac_to_emacs_modifiers (mods); |
return mac_to_emacs_modifiers (mods); |
7044 |
} |
} |