Commit c80c6166 authored by Jan Djärv's avatar Jan Djärv
Browse files

nsterm.m (keyDown): Compare Left key masks exactly (Bug#7458).

parent 5b42dfdd
......@@ -2,7 +2,8 @@
 
* 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>
 
......
......@@ -4451,7 +4451,7 @@ most recently updated (I guess), which is not the correct one. */
? ns_command_modifier
: ns_right_command_modifier);
if (flags & NSLeftCommandKeyMask)
if ((flags & NSLeftCommandKeyMask) == NSLeftCommandKeyMask)
{
emacs_event->modifiers |= parse_solitary_modifier
(ns_command_modifier);
......@@ -4494,7 +4494,7 @@ most recently updated (I guess), which is not the correct one. */
? ns_control_modifier
: ns_right_control_modifier);
if (flags & NSLeftControlKeyMask)
if ((flags & NSLeftControlKeyMask) == NSLeftControlKeyMask)
emacs_event->modifiers |= parse_solitary_modifier
(ns_control_modifier);
......@@ -4521,7 +4521,7 @@ most recently updated (I guess), which is not the correct one. */
: 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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment