Setting Key Equiv. to a menu item without cmd key
Setting Key Equiv. to a menu item without cmd key
- Subject: Setting Key Equiv. to a menu item without cmd key
- From: Theome <email@hidden>
- Date: Tue, 21 Jan 2003 20:49:11 +0100
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@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.