If user cancels the menu, quit unless FOR_CLICK.
}
}
}
+ else if (!for_click)
+ /* Make "Cancel" equivalent to C-g. */
+ Fsignal (Qquit, Qnil);
return Qnil;
}
entry = Qnil;
break;
case XM_NO_SELECT:
- /* Make "Cancel" equivalent to C-g unless this menu was popped up by
- a mouse press. */
+ /* Make "Cancel" equivalent to C-g unless FOR_CLICK (which means
+ the menu was invoked with a mouse event as POSITION). */
if (! for_click)
Fsignal (Qquit, Qnil);
entry = Qnil;