How to add hot key(default key) for your button...

How to add default key for your button on window?

I have searched for a very long time,then I found it in stackoverflow.the URL is:

http://stackoverflow.com/questions/11850132/xcode-set-default-button-on-enter-when-making-a-form

the way is to open IB,select the button you want and open your attribute inspector,then in the first section named "Button",select the last item,you can see a label "Key Equivalent",click the textfield beside it and click the key you want to related with the button,then everything will be okay.

Thanks,

Blues

你可能感兴趣的:(How to add hot key(default key) for your button...)