- Joined
- Mar 12, 2011
- Messages
- 1
- Reaction score
- 0
- Points
- 1
Hey guys! I'm working on an aplication which has one button.Let's say Button A.
What i already did: when pressing 'a' on the keyboard i am able to simulate the corresponding button action. I also did this with Cmd+a keys.
What I want to do: I want to let the user select what shortcut key he wants to use for pressing button A.
To achieve this I made a nstableview with 2 columns,second collumn editable,representing the shortcut key. It works for simple key only(eg. 'a' or 'e' or something similar).
The question would be: How to detect,for example cmd key down on editing a table cell and display cmd sign in the table?
Thanks,
Andrei
What i already did: when pressing 'a' on the keyboard i am able to simulate the corresponding button action. I also did this with Cmd+a keys.
What I want to do: I want to let the user select what shortcut key he wants to use for pressing button A.
To achieve this I made a nstableview with 2 columns,second collumn editable,representing the shortcut key. It works for simple key only(eg. 'a' or 'e' or something similar).
The question would be: How to detect,for example cmd key down on editing a table cell and display cmd sign in the table?
Thanks,
Andrei