diff options
| author | Jim Blandy | 1993-06-22 02:06:54 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-06-22 02:06:54 +0000 |
| commit | fbcd35bd72c1778817294cc160a84353fd864a9e (patch) | |
| tree | 09c94a6596f26a5ee13e5dac4b87b6ed402661cc /src/termhooks.h | |
| parent | 69b95560cde2119f7f3c3d5bd241bc7355bcf27d (diff) | |
| download | emacs-fbcd35bd72c1778817294cc160a84353fd864a9e.tar.gz emacs-fbcd35bd72c1778817294cc160a84353fd864a9e.zip | |
* 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.
Diffstat (limited to 'src/termhooks.h')
| -rw-r--r-- | src/termhooks.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/termhooks.h b/src/termhooks.h index a410038f5f6..53d48f254e6 100644 --- a/src/termhooks.h +++ b/src/termhooks.h | |||
| @@ -286,10 +286,11 @@ struct input_event { | |||
| 286 | is a mouse click lacking the click and drag modifiers. | 286 | is a mouse click lacking the click and drag modifiers. |
| 287 | 287 | ||
| 288 | The window-system independent code turns all up_modifier events | 288 | The window-system independent code turns all up_modifier events |
| 289 | bits into either drag_modifier or click_modifier events. The | 289 | bits into drag_modifier, click_modifier, double_modifier, or |
| 290 | click_modifier has no written representation in the names of the | 290 | triple_modifier events. The click_modifier has no written |
| 291 | symbols used as event heads, but it does appear in the | 291 | representation in the names of the symbols used as event heads, |
| 292 | Qevent_symbol_components property of the event heads. */ | 292 | but it does appear in the Qevent_symbol_components property of the |
| 293 | event heads. */ | ||
| 293 | enum { | 294 | enum { |
| 294 | up_modifier = 1, /* Only used on mouse buttons - always | 295 | up_modifier = 1, /* Only used on mouse buttons - always |
| 295 | turned into a click or a drag modifier | 296 | turned into a click or a drag modifier |
| @@ -299,6 +300,8 @@ enum { | |||
| 299 | queue; it's only used internally by | 300 | queue; it's only used internally by |
| 300 | the window-system-independent code. */ | 301 | the window-system-independent code. */ |
| 301 | click_modifier= 8, /* See drag_modifier. */ | 302 | click_modifier= 8, /* See drag_modifier. */ |
| 303 | double_modifier= 16, /* See drag_modifier. */ | ||
| 304 | triple_modifier= 32, /* See drag_modifier. */ | ||
| 302 | 305 | ||
| 303 | /* The next four modifier bits are used also in keyboard events at | 306 | /* The next four modifier bits are used also in keyboard events at |
| 304 | the Lisp level. | 307 | the Lisp level. |