Re: key binding editing
Re: key binding editing
- Subject: Re: key binding editing
- From: James Bucanek <email@hidden>
- Date: Fri, 17 Feb 2006 13:46:31 -0700
On 2006-02-17 11:45, David Litwin said:
>Does anyone know how to add a key binding for Undo? It isn't in the
>"Text Key Bindings" tab (although Redo is), and the entry in Menu Key
>Bindings only allows replacing Command Z, not adding an additional
>binding.
>
>I'd like to map Ctrl-/ to Undo, but would like to leave Command Z as
>well so others using my machine won't be stuck unable to Undo.
This is a bit of a hack, but you could create a custom menu item that fired an Undo to Xcode via AppleEvents and assign it a command key combination of Command+/. I have no idea what the performance for something like will be like.
(I won't even ask why you'd want to do this in the first place...)
Sean McBride wrote on Friday, February 17, 2006:
>I'm sure someone will correct me if I'm wrong, but unlike CodeWarrior,
>Xcode does not allow more than one key combination to be assigned per
>action. :(
Shean, you're half right. You can assign multiple key combinations to any text editing action (Text Key Binding), but you can only assign one key combination to a menu command (Menu Key Binding). This is, I'm sure, because the menu key bindings use the Cocoa menu framework which only permits a one-to-one correspondence between menu items and keyboard shortcuts.
James Bucanek
____________________________________________________________________
Author of Beginning Xcode ISBN: 047175479X
<http://www.beginningxcode.com/> Available April 3rd, 2006
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden