Mercurial > emacs
changeset 102504:a8e5be48f21f
newFrame, openFile, fulfillService, changeFont, toggleToolbar, performDragOperation, runHelp: use the new NS_NONKEY_EVENT event type.
author | David Reitter <david.reitter@gmail.com> |
---|---|
date | Thu, 12 Mar 2009 01:57:50 +0000 |
parents | af863de45184 |
children | b03522350562 |
files | src/nsterm.m |
diffstat | 1 files changed, 11 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/src/nsterm.m Thu Mar 12 01:56:58 2009 +0000 +++ b/src/nsterm.m Thu Mar 12 01:57:50 2009 +0000 @@ -4117,7 +4117,7 @@ if (!emacs_event) return; - emacs_event->kind = NON_ASCII_KEYSTROKE_EVENT; + emacs_event->kind = NS_NONKEY_EVENT; emacs_event->code = KEY_NS_NEW_FRAME; emacs_event->modifiers = 0; EV_TRAILER (theEvent); @@ -4133,7 +4133,7 @@ if (!emacs_event) return NO; - emacs_event->kind = NON_ASCII_KEYSTROKE_EVENT; + emacs_event->kind = NS_NONKEY_EVENT; emacs_event->code = KEY_NS_OPEN_FILE_LINE; ns_input_file = append2 (ns_input_file, build_string ([fileName UTF8String])); ns_input_line = Qnil; /* can be start or cons start,end */ @@ -4358,7 +4358,7 @@ if (!emacs_event) return NO; - emacs_event->kind = NON_ASCII_KEYSTROKE_EVENT; + emacs_event->kind = NS_NONKEY_EVENT; emacs_event->code = KEY_NS_SPI_SERVICE_CALL; ns_input_spi_name = build_string ([name UTF8String]); ns_input_spi_arg = build_string ([arg UTF8String]); @@ -4414,7 +4414,7 @@ { SET_FRAME_GARBAGED (emacsframe); /* now needed as of 2008/10 */ - emacs_event->kind = NON_ASCII_KEYSTROKE_EVENT; + emacs_event->kind = NS_NONKEY_EVENT; emacs_event->modifiers = 0; emacs_event->code = KEY_NS_CHANGE_FONT; @@ -5453,7 +5453,7 @@ if (!emacs_event) return self; - emacs_event->kind = NON_ASCII_KEYSTROKE_EVENT; + emacs_event->kind = NS_NONKEY_EVENT; emacs_event->code = KEY_NS_TOGGLE_TOOLBAR; EV_TRAILER ((id)nil); return self; @@ -5527,7 +5527,7 @@ fenum = [files objectEnumerator]; while ( (file = [fenum nextObject]) ) { - emacs_event->kind = NON_ASCII_KEYSTROKE_EVENT; + emacs_event->kind = NS_NONKEY_EVENT; emacs_event->code = KEY_NS_DRAG_FILE; XSETINT (emacs_event->x, x); XSETINT (emacs_event->y, y); @@ -5548,7 +5548,7 @@ return NO; file = [fileURL path]; - emacs_event->kind = NON_ASCII_KEYSTROKE_EVENT; + emacs_event->kind = NS_NONKEY_EVENT; emacs_event->code = KEY_NS_DRAG_FILE; XSETINT (emacs_event->x, x); XSETINT (emacs_event->y, y); @@ -5565,7 +5565,7 @@ if (! (data = [pb stringForType: type])) return NO; - emacs_event->kind = NON_ASCII_KEYSTROKE_EVENT; + emacs_event->kind = NS_NONKEY_EVENT; emacs_event->code = KEY_NS_DRAG_TEXT; XSETINT (emacs_event->x, x); XSETINT (emacs_event->y, y); @@ -5577,7 +5577,7 @@ else if ([type isEqualToString: NSColorPboardType]) { NSColor *c = [NSColor colorFromPasteboard: pb]; - emacs_event->kind = NON_ASCII_KEYSTROKE_EVENT; + emacs_event->kind = NS_NONKEY_EVENT; emacs_event->code = KEY_NS_DRAG_COLOR; XSETINT (emacs_event->x, x); XSETINT (emacs_event->y, y); @@ -5597,7 +5597,7 @@ if (font == nil) return NO; - emacs_event->kind = NON_ASCII_KEYSTROKE_EVENT; + emacs_event->kind = NS_NONKEY_EVENT; emacs_event->code = KEY_NS_CHANGE_FONT; XSETINT (emacs_event->x, x); XSETINT (emacs_event->y, y); @@ -6303,7 +6303,7 @@ if (!emacs_event) return; ns_raise_frame(frame); - emacs_event->kind = NON_ASCII_KEYSTROKE_EVENT; + emacs_event->kind = NS_NONKEY_EVENT; emacs_event->code = KEY_NS_INFO_PREFS; EV_TRAILER ((id)nil); }