Skip navigation.
 
mlSetting Key Equiv. to a menu item without cmd key
FROM : Theome
DATE : Tue Jan 21 20:49:11 2003

Greetings,

I'd like to have a menu item in the main menu of my app responding to the
key backspace while the user doen't need to hold the command key.

here's a snippet of the code:

    [menuItemDelete setKeyEquivalent:@"\b"];
    [menuItemDelete setKeyEquivalentModifierMask:0];

the main menu doesn't seem to receive the event when the, and I couldn't
figure out why. I tried to set [NSApp mainMenu] to my view's nextResponder,
but this didn't work as NSMenu does not inherit froom NSResponder.

can anyone help me to solve the problem?

thanks a lot,

Theome.
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlSetting Key Equiv. to a menu item without cmd key Theome Jan 21, 20:49
mlRe: Setting Key Equiv. to a menu item without cmd key j o a r Jan 21, 22:06