Thanks for the heads-up on the commandKeyDown handler. I've actually already got that in place, and my software doesn't really use fields so I think it should be good. If it isn't I'll more than likely see it in testing.

On 4/20/2016 2:20 PM, Peter M. Brigham wrote:
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
pmb...@gmail.com


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to