Mercurial > emacs
diff src/keyboard.c @ 100853:b660fb953e3d
(parse_modifiers_uncached): Wheel events are clicks (bug#687).
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Sat, 03 Jan 2009 14:53:26 +0000 |
parents | dab9cf44bf3f |
children | e038c1a8307c |
line wrap: on
line diff
--- a/src/keyboard.c Sat Jan 03 14:51:55 2009 +0000 +++ b/src/keyboard.c Sat Jan 03 14:53:26 2009 +0000 @@ -6313,6 +6313,11 @@ && ('0' <= SREF (name, i + 6) && SREF (name, i + 6) <= '9')) modifiers |= click_modifier; + if (! (modifiers & (double_modifier | triple_modifier)) + && i + 6 < SBYTES (name) + && strncmp (SDATA (name) + i, "wheel-", 6) == 0) + modifiers |= click_modifier; + if (modifier_end) *modifier_end = i;