Show Key Combination Pressed by User
I need the code that would emulate what happens when you click in the edit box across from "Press new keyboard shortcut in Customize Toolbars & Menus > Customize Keyboard (when Keyboard... button is pressed). This is the dialog box in which user assigns a key combination to a macro.
I need to find out exactly what key combination user has pressed inside a text box in a dialog box and show it exactly like MS Word does in Customize Keyboard dialog box., e.g. Command+Control+Shift+A (I'm a Mac user).
I'm using TextBox_KeyUp() in a dialog box but for some reason it doesn't register the Option key or perhaps I don't know what the Shift value for the option is key! The MS Words key in their Customize Keyboard dialog works perfectly.
All help is appreciated.
|