aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Reitter2009-03-12 01:56:58 +0000
committerDavid Reitter2009-03-12 01:56:58 +0000
commit83d92ee0cfd849a87c8798076c27b257122a99bc (patch)
tree222dab262bf5b72ac42b2cffb989fdc76b815286 /src
parente76df1c0bd24328b1f2b18a30a577f03186540bb (diff)
downloademacs-83d92ee0cfd849a87c8798076c27b257122a99bc.tar.gz
emacs-83d92ee0cfd849a87c8798076c27b257122a99bc.zip
(parse_menu_item) [HAVE_NS]: treat new event like NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 9f7648563c0..5d3ae421d0f 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -4158,6 +4158,7 @@ kbd_buffer_get_event (kbp, used_mouse_menu, end_time)
4158 else 4158 else
4159 obj = Fcons (intern ("ns-unput-working-text"), Qnil); 4159 obj = Fcons (intern ("ns-unput-working-text"), Qnil);
4160 kbd_fetch_ptr = event + 1; 4160 kbd_fetch_ptr = event + 1;
4161 *used_mouse_menu = 1;
4161 } 4162 }
4162#endif 4163#endif
4163 4164
@@ -4312,6 +4313,11 @@ kbd_buffer_get_event (kbp, used_mouse_menu, end_time)
4312 || event->kind == TOOL_BAR_EVENT)) 4313 || event->kind == TOOL_BAR_EVENT))
4313 *used_mouse_menu = 1; 4314 *used_mouse_menu = 1;
4314#endif 4315#endif
4316#ifdef HAVE_NS
4317 /* certain system events are non-key events */
4318 if (event->kind == NS_NONKEY_EVENT)
4319 *used_mouse_menu = 1;
4320#endif
4315 4321
4316 /* Wipe out this event, to catch bugs. */ 4322 /* Wipe out this event, to catch bugs. */
4317 clear_event (event); 4323 clear_event (event);
@@ -5552,6 +5558,12 @@ make_lispy_event (event)
5552 return lispy_c; 5558 return lispy_c;
5553 } 5559 }
5554 5560
5561#ifdef HAVE_NS
5562 /* NS_NONKEY_EVENTs are just like NON_ASCII_KEYSTROKE_EVENTs,
5563 except that they are non-key events (last-nonmenu-event is nil). */
5564 case NS_NONKEY_EVENT:
5565#endif
5566
5555 /* A function key. The symbol may need to have modifier prefixes 5567 /* A function key. The symbol may need to have modifier prefixes
5556 tacked onto it. */ 5568 tacked onto it. */
5557 case NON_ASCII_KEYSTROKE_EVENT: 5569 case NON_ASCII_KEYSTROKE_EVENT: