How to associate an action with a keyboard shortcut?

I have an IBAction that calls the panel. I want to call this action using a keyboard shortcut, but I do not understand how to do this.

I suppose one way to do this would be to create a menu item, associate an action with the item and assign a shortcut to that item, but I haven't done the menu yet.

Any ideas or suggestions?

+3
source share
1 answer

I suppose one way to do this would be to create a menu item, action on the item, and then assign a shortcut to that item, but I haven’t done my menu yet.

, :)
, .

+1

Source: https://habr.com/ru/post/1722111/


All Articles