Mercurial > emacs
diff src/termhooks.h @ 3861:fc8c92b69513
* keyboard.c (make_lispy_event): Added detection of double-click
and triple-click events.
(parse_modifiers_uncached, apply_modifiers_uncached): Same.
(read_key_sequence): Coerce double-clicks to clicks, and triple-clicks
to double-clicks or clicks, by analogy with drag events.
(double_click_time): Added variable.
* termhooks.h: Added multi-click event modifier bits.
| author | Jim Blandy <jimb@redhat.com> |
|---|---|
| date | Tue, 22 Jun 1993 02:06:54 +0000 |
| parents | 3e8799eff918 |
| children | 5c8de184cccf |
line wrap: on
line diff
--- a/src/termhooks.h Tue Jun 22 02:02:00 1993 +0000 +++ b/src/termhooks.h Tue Jun 22 02:06:54 1993 +0000 @@ -286,10 +286,11 @@ is a mouse click lacking the click and drag modifiers. The window-system independent code turns all up_modifier events - bits into either drag_modifier or click_modifier events. The - click_modifier has no written representation in the names of the - symbols used as event heads, but it does appear in the - Qevent_symbol_components property of the event heads. */ + bits into drag_modifier, click_modifier, double_modifier, or + triple_modifier events. The click_modifier has no written + representation in the names of the symbols used as event heads, + but it does appear in the Qevent_symbol_components property of the + event heads. */ enum { up_modifier = 1, /* Only used on mouse buttons - always turned into a click or a drag modifier @@ -299,6 +300,8 @@ queue; it's only used internally by the window-system-independent code. */ click_modifier= 8, /* See drag_modifier. */ + double_modifier= 16, /* See drag_modifier. */ + triple_modifier= 32, /* See drag_modifier. */ /* The next four modifier bits are used also in keyboard events at the Lisp level.
