Can't Display Keyboard Shortcuts in Popups
Peter M. Brigham
pmbrig at gmail.com
Wed Apr 20 14:20:21 EDT 2016
On Apr 20, 2016, at 1:45 PM, Richard Gaskin wrote:
> If this item isn't also in the menu bar, you can put the shortcut into the context menu item but with two downsides:
>
> 1. It won't be right-aligned as users are accustomed to seeing.
>
> 2. It won't have any functional effect, requiring as Craig noted that
> you also write a commandKeyDown handler, with conditionals within
> it to determine when it should be invoked and when it should be
> ignored.
WIth trapping commandkeydown messages, if you're working in the IDE you do have to be sure that you're paying attention to existing commandkey shortcuts. If the user types ctrl-A and the focus is on an editable field then the text of the field will be selected and your own handler won't fire off. If this is a standalone then you have more control.
-- Peter
Peter M. Brigham
pmbrig at gmail.com
More information about the use-livecode
mailing list