Pop-up Menu and Tab Key

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Pop-up Menu and Tab Key

Post by jmburnod » Tue Mar 19, 2019 10:18 am

Sorry Craig, no idea
https://alternatic.ch

MrAlobar
Posts: 70
Joined: Mon Dec 08, 2014 6:42 pm

Re: Pop-up Menu and Tab Key

Post by MrAlobar » Tue Mar 19, 2019 10:24 am

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.
I've Created it with Live Code, I've published it - that's the easy bit done, but how the hell do I get people to download it :?

MrAlobar
Posts: 70
Joined: Mon Dec 08, 2014 6:42 pm

Re: Pop-up Menu and Tab Key

Post by MrAlobar » Tue Mar 19, 2019 10:49 am

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.
I've Created it with Live Code, I've published it - that's the easy bit done, but how the hell do I get people to download it :?

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Pop-up Menu and Tab Key

Post by bogs » Tue Mar 19, 2019 10:54 am

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.
Last edited by bogs on Tue Mar 19, 2019 10:56 am, edited 2 times in total.
Image

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Pop-up Menu and Tab Key

Post by jmburnod » Tue Mar 19, 2019 10:55 am

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 :oops:
https://alternatic.ch

MrAlobar
Posts: 70
Joined: Mon Dec 08, 2014 6:42 pm

Re: Pop-up Menu and Tab Key

Post by MrAlobar » 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've Created it with Live Code, I've published it - that's the easy bit done, but how the hell do I get people to download it :?

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7390
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Pop-up Menu and Tab Key

Post by jacque » Tue Mar 19, 2019 5:06 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10315
Joined: Wed May 06, 2009 2:28 pm

Re: Pop-up Menu and Tab Key

Post by dunbarx » Tue Mar 19, 2019 7:47 pm

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

mrcoollion
Posts: 738
Joined: Thu Sep 11, 2014 1:49 pm

Re: Pop-up Menu and Tab Key

Post by mrcoollion » Tue Mar 19, 2019 9:06 pm

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)
PopUpTabTest.zip
(28.13 KiB) Downloaded 283 times
LC_Message.zip
(10.83 KiB) Downloaded 266 times
Working with LC 9.0.2 OS: Windows 10.

Regards,

Paul 8)

MrAlobar
Posts: 70
Joined: Mon Dec 08, 2014 6:42 pm

Re: Pop-up Menu and Tab Key

Post by MrAlobar » Tue Mar 19, 2019 9:29 pm

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 :-)
I've Created it with Live Code, I've published it - that's the easy bit done, but how the hell do I get people to download it :?

MrAlobar
Posts: 70
Joined: Mon Dec 08, 2014 6:42 pm

Re: Pop-up Menu and Tab Key

Post by MrAlobar » Tue Mar 19, 2019 9:32 pm

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.
I've Created it with Live Code, I've published it - that's the easy bit done, but how the hell do I get people to download it :?

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10315
Joined: Wed May 06, 2009 2:28 pm

Re: Pop-up Menu and Tab Key

Post by dunbarx » Tue Mar 19, 2019 9:48 pm

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

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Pop-up Menu and Tab Key

Post by bogs » Tue Mar 19, 2019 10:03 pm

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
:shock:
I am extremely thankful for the compliment, but I am in no way anywhere near as good as Thierry :shock: :shock: :shock:
Image

MrAlobar
Posts: 70
Joined: Mon Dec 08, 2014 6:42 pm

Re: Pop-up Menu and Tab Key

Post by MrAlobar » Tue Mar 19, 2019 10:18 pm

:oops: thought that was your real moniker Bogs - I should have looked closed !
I've Created it with Live Code, I've published it - that's the easy bit done, but how the hell do I get people to download it :?

MrAlobar
Posts: 70
Joined: Mon Dec 08, 2014 6:42 pm

Re: Pop-up Menu and Tab Key

Post by MrAlobar » Tue Mar 19, 2019 10:22 pm

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.
I've Created it with Live Code, I've published it - that's the easy bit done, but how the hell do I get people to download it :?

Post Reply