# HG changeset patch # User David Reitter # Date 1236823070 0 # Node ID a8e5be48f21f4eb3025918c2454379b9da191c9a # Parent af863de451841223bc4668efa9a9d54142b6f1bf newFrame, openFile, fulfillService, changeFont, toggleToolbar, performDragOperation, runHelp: use the new NS_NONKEY_EVENT event type. diff -r af863de45184 -r a8e5be48f21f src/nsterm.m --- 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); }