* nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
(NSLeftAlternateKeyMask): New defines.
- (keyDown): Parse left and right keys separatly (Bug#7458).
+ (keyDown): Parse left and right keys separately (Bug#7458).
+ Compare Left key masks exactly (Bug#7458).
2010-11-23 Eli Zaretskii <eliz@gnu.org>
? ns_command_modifier
: ns_right_command_modifier);
- if (flags & NSLeftCommandKeyMask)
+ if ((flags & NSLeftCommandKeyMask) == NSLeftCommandKeyMask)
{
emacs_event->modifiers |= parse_solitary_modifier
(ns_command_modifier);
? ns_control_modifier
: ns_right_control_modifier);
- if (flags & NSLeftControlKeyMask)
+ if ((flags & NSLeftControlKeyMask) == NSLeftControlKeyMask)
emacs_event->modifiers |= parse_solitary_modifier
(ns_control_modifier);
: ns_right_alternate_modifier);
}
- if (flags & NSLeftAlternateKeyMask) /* default = meta */
+ if ((flags & NSLeftAlternateKeyMask) == NSLeftAlternateKeyMask) /* default = meta */
{
if ((NILP (ns_alternate_modifier)
|| EQ (ns_alternate_modifier, Qnone))