Search code examples
xcodemacoscocoakeyboard-shortcutsnstextfield

"Key Equivalent" input similar to Xcode?


In Xcode, when you are setting a keyboard shortcut, there is a nice control that helps you out:

UI Control

I feel like I could reproduce it by extending a NSTextField, but I also feel like it may be something someone else has done before. I've done some searching but have not been able to come up with anything.

Does anyone happen to know where I may find a similar component, or possibly have any suggestions should I attempt it myself?


Solution

  • Thanks to another post, I found ShortcutRecorder. Basically what I was looking for.