Page 2 of 3
Re: Pop-up Menu and Tab Key
Posted: Tue Mar 19, 2019 10:18 am
by jmburnod
Sorry Craig, no idea
Re: Pop-up Menu and Tab Key
Posted: Tue Mar 19, 2019 10:24 am
by MrAlobar
Links to a folder with exe and video..
https://1drv.ms/f/s!Aj4Jd3FRrL_LhNNHIGfa-9oJNcUZtQ
(let me know if you have trouble with that link - I've had mixed results testing it)
I have a Snow Leopard disc somewhere, if I get time later I'll spin up a VM and test it.
There is nothing peculiar about my rig - Dell Latitude 7390 2 in 1, i5-8350U, 16gb, Windows 10 pro v1809, clean installation as of Jan this year. Normal user adjustments to UI like turning off animations and unnecessary stuff like that, but nothing deeper.
Re: Pop-up Menu and Tab Key
Posted: Tue Mar 19, 2019 10:49 am
by MrAlobar
I've just repeated this on my old Yoga 2 Pro, also Windows 10, with a fresh install of LC 8.1.10, and got the same result !
Just to be sure - when you create a stack, exactly how I did, and follow the steps I set out below - do you see it tab through the menu items, with no highlighting of the card objects ?
Thanks for looking at this guys.
Re: Pop-up Menu and Tab Key
Posted: Tue Mar 19, 2019 10:54 am
by bogs
After watching the video, i set up the same thing in 6.5.2 on 'nix, it did the same thing. OSX 10.6 and Lc 8.1 didn't show the same behavior, but did show something else with the combo box.
On OSX, when the combo box is active, hitting tab switched between it and the field instead of the items under it. Also on OSX, I was unable to tab any of the menu items like you can on win/lin. Sorry guys, looks like mac doesn't let you do what he is having an issue with.
MrAlobar, sorry, I don't think you can fix it outside of code, however, the code to fix it shouldn't be earth shattering either as you indicated you already had a work around in mind.
As an aside, I didn't find any programs on 'nix that use tab to navigate menus, so the reason no one else may have noticed it is simply because not a lot of people navigate menus in a similar fashion ?
Since I was able to simulate this all the way back to 6.x though, it might be expected behavior. I would suggest a bug report, and depending on the outcome of that, follow up with a feature request, it isn't a "just you" situation.
Re: Pop-up Menu and Tab Key
Posted: Tue Mar 19, 2019 10:55 am
by jmburnod
Hi Jay,
Thanks , link and vidéo work fine
Now we are sure we talk about same
Unfortunately, any idea why it works for you

Re: Pop-up Menu and Tab Key
Posted: Tue Mar 19, 2019 12:29 pm
by MrAlobar
Thanks guys.
Thierry, I appreciate the confirmation - it's good to know I'm not going mad (at least in respect of LC anyway !).
I will raise a bug report.
Jay
Re: Pop-up Menu and Tab Key
Posted: Tue Mar 19, 2019 5:06 pm
by jacque
Macs don't have traversalOn for buttons, Windows does. That's the difference.
It's typical to use arrow keys to navigate menu items and tab to traverse fields. A quick fix would be to put in an empty tabKey handler in the popdown to block tabs entirely, so users could only use arrow keys. Since this is pretty normal behavior, I don't think your users would be too confused,
It isn't a bug, it's how the OS works.
Re: Pop-up Menu and Tab Key
Posted: Tue Mar 19, 2019 7:47 pm
by dunbarx
Jacque.
Ah, so it is environmental.
Jay.
SInce both tabKey and arrowKey are messages, it should be possible to trap tabKey and from there send ArowKey. In that way, you would have the desired menuItem behavior, but not the object focus behavior,
Craig
Re: Pop-up Menu and Tab Key
Posted: Tue Mar 19, 2019 9:06 pm
by mrcoollion
I see the same strange behavior in your stack (see attached zipped animated gif file).
But when I loaded it I got the message 'A stack revCursors is already in memory ....'. (see attached file)
Working with LC 9.0.2 OS: Windows 10.
Regards,
Paul

Re: Pop-up Menu and Tab Key
Posted: Tue Mar 19, 2019 9:29 pm
by MrAlobar
Thanks All, much appreciated.
Craig - trapping tab key and subbing arrow key is a good suggestion - cheers.
Jacques - I do think the default implementation of the tab key function in options menus should be exclusive while menu is open - I accept that it is not a bug but it's not desirable or useful to have the default behaviour of dual highlighting. I don't think it merits a feature request though.
Granted, my use is a tad unusual but Livecode is versatile - I am creating a proof of concept for a kids' app that uses just tab and return keys (and to a lesser degree the space bar) so I'm not following the typical windows UI. I normally code for Windows and have never come up against this before but I can't honestly say I fully appreciated the general rule of arrow key for menus and tab between fields - so thank you for that clarification.
By the way - last week, whilst clambering up another steep learning curve, I came across the resources tab on your hyperactivesw site and it proved very useful - hat's off and thank you

Re: Pop-up Menu and Tab Key
Posted: Tue Mar 19, 2019 9:32 pm
by MrAlobar
Paul,
Interesting - I notice that revCursors message as well but thought it was a one off as I was bouncing in and out of various stacks - multitasking.
I don't get it on other stacks and that one was made clean from a fresh launch of the IDE.
I'll take a look at the attachments shortly and get back to you again.
Re: Pop-up Menu and Tab Key
Posted: Tue Mar 19, 2019 9:48 pm
by dunbarx
Paul.
...the message 'A stack revCursors is already in memory
I see this always with some stacks, and never with others. Not a problem, just an annoyance.
Craig
Re: Pop-up Menu and Tab Key
Posted: Tue Mar 19, 2019 10:03 pm
by bogs
MrAlobar wrote: Tue Mar 19, 2019 12:29 pm
Thanks guys.
Thierry, I appreciate the confirmation - it's good to know I'm not going mad (at least in respect of LC anyway !).
I will raise a bug report.
Jay
I am extremely thankful for the compliment, but I am in no way anywhere near as good as Thierry

Re: Pop-up Menu and Tab Key
Posted: Tue Mar 19, 2019 10:18 pm
by MrAlobar

thought that was your real moniker Bogs - I should have looked closed !
Re: Pop-up Menu and Tab Key
Posted: Tue Mar 19, 2019 10:22 pm
by MrAlobar
Craig - first time I've seen it but I shan't worry about it now - easily deleted from the stack and as you say, 'tis a small annoyance.
Well that's enough TabKey related fun for me for one day - thanks again for your help all - back at it tomorrow.