Shouldn't space or enter in a menu select the hilited item?

Bob Sneidar bobsneidar at iotecdigital.com
Mon Aug 15 18:03:57 EDT 2022


Hi Craig. It's not a popup menu it's a combo box. I do use popup menus and those work as advertized. 

When I click to expand a combo box menu, it I get the list of items, and if I click an item, it correctly selects that item. If however I use the arrow keys to hilite an item then use the space bar or return to select the hilited item, the hilited item is NOT selected, it retains it's previous label. 

Bob S


> On Aug 15, 2022, at 11:03 , Craig Newman via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Hi, I was not complete. Once the arrow keys have found the menuItem of interest, clicking Enter or Return executes the menuPick handler.
> 
> Craig
> 
>> On Aug 12, 2022, at 7:37 PM, Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>> Hi all. Very odd, I thought this worked. 
>> 
>> I am programmatically popping up a menu, then I want to be able to jse the arrow keys to traverse the selections available. If I click any of the choices, the menuPick handler gets the choice as the first parameter. If however I use the spacebar or the enterKey to select a choice, the parameter is empty in menuPick! That isn't right, is it??
>> 
>> MacOS 10.15.7 LC 9.6.9 rc1
>> 
>> Bob S
>> 
>> 
>> _______________________________________________
>> 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
> 
> 
> _______________________________________________
> 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