Keyboard Shortcuts in Menus

Bob Sneidar bobsneidar at iotecdigital.com
Wed Nov 12 12:38:42 EST 2014


Looks like, from playing with the Menu Builder that whatever key the & precedes will be the hotkey in Windows. Of course, it needs to be unique for that menu button. If that is not working (by holding the Alt button and typing the key) then that is probably some kind of bug, unless you have keydown or keyup handlers that might intercept the keypresses. 

The character that the / precedes is the OS X shortcut. 

I find the menu builder quite good now. Initially back in Revolution 2.x it caused me a lot of problems. It could under certain circumstances corrupt the menu and make it unusable, but now I find it very reliable. 

Bob S


> On Nov 11, 2014, at 07:32 , Graham Samuel <livfoss at mac.com> wrote:
> 
> I'm using LC 7.0.1. Looking at both the LC User Guide and the Dictionary, I find that I don’t exactly understand the way you put keyboard shortcuts into menus and get them to activate, especially on Windows. I note for example:
> 
> 1. The ‘&’ character is always present in a menu item which is also intended to work as a keyboard shortcut, but it isn’t always at the beginning of the menu’s text. Is there are reason for this, or is it just wilful eccentricity on the part of the Menu Builder?
> 
> 2. In a cross platform app, I use a script at startup to switch the last item of my 'File' menu from the Mac’s ‘Quit’ text
> 
>  &Quit/Q
> 
> to the Windows equivalent
> 
> &Exit/x
> 
> This looks OK on the menu item display, but I don't think this works, even though the standard shortcuts (Cut, Copy, Paste) work in the 'Edit' menu, and they don't look any different in form. Naturally I may just have made a silly mistake, but so far I can't see what it is.
> 
> Can anyone explain what is going on behind the scenes?
> 
> BTW, I don't especially care for the Menu Builder, but it seems that the LC documentation assumes one is going to use it - maybe that's why the documentation is a bit sketchy.
> 
> TIA
> 
> Graham
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



More information about the use-livecode mailing list