Where do Command-C and Command-V get handled?

J. Landman Gay jacque at hyperactivesw.com
Tue Nov 11 15:27:36 CST 2008


David Epstein wrote:
> In my own customized defaultMenuBar, I have included an Edit menu with my
> own copy and paste commands, with command-C and command-V equivalents
> defined using the "/" convention.
> 
> 
> When those commands are chosen from the menu, my copy and paste scripts are
> executed as expected.  But when I use the command-key equivalents, my
> scripts are not executed, and some standard copy and paste behavior takes
> place instead.

If you have a rawkeydown or a keydown handler in the message path, it 
can block the menu items. Check in those handlers to see if the 
commandkey is down and if so, pass the keydown (or rawkeydown) message.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com


More information about the metacard mailing list