osx - User assigned key equivalents -


i'm working on status bar app. i'd allow user modify menu item key equivalents own preferences. i've seen done before it's pretty common feature. prefs window has area textfields user enters keyboard shortcut specific menu items.

how 1 setup textfield displays modifier key fonts? default nstextfield ignores modifiers.

also have yet find example project showing functionality, if has link helpful.

you may wish take @ shortcut recorder allows user record key equivalents using modifiers , retrieve them , set them nsmenuitem.

once user has recorder shortcut/key combination can access srrecordercontrol's objectvalue property has values key code , modifier flags.

https://github.com/kentzo/shortcutrecorder


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -