diff options
| author | Jason Rumney | 2002-03-23 00:33:22 +0000 |
|---|---|---|
| committer | Jason Rumney | 2002-03-23 00:33:22 +0000 |
| commit | d4ae780a9ba75aedf89a0e6eae5fe76e50833002 (patch) | |
| tree | 4db6cf515780f920b4759b4c63a692cea7fb7c4e /src | |
| parent | 44d38e8d278d2da145241f59e1fb94e3995d44af (diff) | |
| download | emacs-d4ae780a9ba75aedf89a0e6eae5fe76e50833002.tar.gz emacs-d4ae780a9ba75aedf89a0e6eae5fe76e50833002.zip | |
(w32_handle_tool_bar_click): Detect up and down events
correctly. Do not pass up_modifier to keyboard buffer.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32term.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/w32term.c b/src/w32term.c index 01e5975c75e..3edfba83919 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -7064,7 +7064,7 @@ w32_handle_tool_bar_click (f, button_event) | |||
| 7064 | if (NILP (enabled_p)) | 7064 | if (NILP (enabled_p)) |
| 7065 | return; | 7065 | return; |
| 7066 | 7066 | ||
| 7067 | if (button_event->kind == mouse_click) | 7067 | if (button_event->modifiers & down_modifier) |
| 7068 | { | 7068 | { |
| 7069 | /* Show item in pressed state. */ | 7069 | /* Show item in pressed state. */ |
| 7070 | show_mouse_face (dpyinfo, DRAW_IMAGE_SUNKEN); | 7070 | show_mouse_face (dpyinfo, DRAW_IMAGE_SUNKEN); |
| @@ -7091,7 +7091,8 @@ w32_handle_tool_bar_click (f, button_event) | |||
| 7091 | event.kind = TOOL_BAR_EVENT; | 7091 | event.kind = TOOL_BAR_EVENT; |
| 7092 | event.frame_or_window = frame; | 7092 | event.frame_or_window = frame; |
| 7093 | event.arg = key; | 7093 | event.arg = key; |
| 7094 | event.modifiers = button_event->modifiers; | 7094 | /* The keyboard buffer doesn't like the up modifier being set. */ |
| 7095 | event.modifiers = button_event->modifiers & ~up_modifier; | ||
| 7095 | kbd_buffer_store_event (&event); | 7096 | kbd_buffer_store_event (&event); |
| 7096 | last_tool_bar_item = -1; | 7097 | last_tool_bar_item = -1; |
| 7097 | } | 7098 | } |