Tab Key Indexing

Started by jaf, May 23, 2009, 11:38:48 AM

Previous topic - Next topic

jaf

I guess this is not really a bug, but it bugs me.  :D

Why aren't the tab key presses indexed to a proper order?  Here's what I mean:

Go to a panel like the Objects|Object Scale.  Click in the Minimum scale text entry box and type in a value.  Now press the tab key.  This takes you to the slider for minimum scale.  Why?  I just typed in a minimum scale.

Now press tab again.  It the "Import from text file..." gets focus.  No only is that redundant (again, I already entered a minimum scale value) but it is visually out of order (usually it would be left to right, then down, like  x/y/z entry boxes.)

What I would like is to click in the minimum box, make my entry, press tab and find myself in the maximum field.

Maybe I'm missing a work-flow feature, but if not, this should be a simple change or code cleanup task.
(04Dec20) Ryzen 1800x, 970 EVO 1TB M.2 SSD, Corsair Vengeance 64GB DDR4 3200 Mem,  EVGA GeForce GTX 1080 Ti FTW3 Graphics 457.51 (04Dec20), Win 10 Pro x64, Terragen Pro 4.5.43 Frontier, BenchMark 0:10:02

neuspadrin

#1
I believe its just part of the operating system and how it interprets things. Tab switches to the next possible input field designated, and planetside has it set to the sliders cause some people might use them.  It wouldn't make sense to have tab ignore possible places to input.

What if I was using the slider in min because i just wanted to tweak it, but in max i wanted to type something in?

As for not in proper order for the last one to set animation key/import from file, animation keys must be set AFTER modifying the data inside.  So it makes sense to be able to enter your data, then tab to animation key and set it.  As then terragen knows what to animation between, otherwise it doesn't animate it properly.

jaf

I'm not sure what compiler/IDE the Planetside people are using, but with Microsoft Visual Studio you can control the TabIndex property for each control (button, textbox, etc.)  The operating system does have a tab hierarchy, but it is programmed too.

I believe the TabIndex sequence is set by the object creation order, but as I mentioned, it can be modified to a more efficient order.

The point is, the text entry box is a mouse click/keyboard event and the sliders are usually mouse driven.  You make a decision on the type of data entry for one field and when satisfied you go to the next (I like using the tab key to do that.)

So if the TabIndex for Minimum scale is 58, setting the index to 59 for Maximum scale would accomplish this.

Of course there's occasions where you use a slider and then decide to fine tune with the text entry so a shift tab to back up would work.  But I suspect that happens less often than a quick click/enter/tab/enter sequence for the example I mentioned for max/min entry.

So it's not a bug, but an annoyance, at least for me.
(04Dec20) Ryzen 1800x, 970 EVO 1TB M.2 SSD, Corsair Vengeance 64GB DDR4 3200 Mem,  EVGA GeForce GTX 1080 Ti FTW3 Graphics 457.51 (04Dec20), Win 10 Pro x64, Terragen Pro 4.5.43 Frontier, BenchMark 0:10:02

neuspadrin

I know, which is why I believe planetside has set it up the way they want.  The fact that they tab in order properly through the buttons in a somewhat logical order shows they spent the time to set that order.

You could always just train yourself to *tab*tab*tab* really quick... /shrug

jaf

Yes, it's probably personal preference and of course I can get used to it.  But I thought the idea was to make the work-flow better?

For example, you add water (lake).  You click and move the water level slider.  Is it logical to hit tab and expect the next control with focus is the water level text file entry button?  On most occasions, if you were going to enter it via a text file, you would start there (at the text file button.)

I'm used to Lightwave.  They have a numeric panel and the tab order is width, height, depth, even though they have a slider to the right of each text entry field.  In fact, they slider doesn't have a tab index.
(04Dec20) Ryzen 1800x, 970 EVO 1TB M.2 SSD, Corsair Vengeance 64GB DDR4 3200 Mem,  EVGA GeForce GTX 1080 Ti FTW3 Graphics 457.51 (04Dec20), Win 10 Pro x64, Terragen Pro 4.5.43 Frontier, BenchMark 0:10:02

jo

Hi jaf,

The reason that all controls can be tabbed to is that it's one of the "rules" of Windows UI design (which we try to follow) - all interactive controls must be able to be tabbed to. If you were someone who was primarily a keyboard navigator, as opposed to a mouse navigator, then not being able to tab to a particular control wouldn't be appreciated.

In the example you gave, tabbing from the Minimum scale text field to the slider is the proper order.

The thing you mention about the "text file button" ( we call it the animation button ) is a valid point though. I will see if I can improve that.

Regards,

Jo

neuspadrin

Quote from: jo on May 23, 2009, 09:56:33 PM
The thing you mention about the "text file button" ( we call it the animation button ) is a valid point though. I will see if I can improve that.

Yes but the animation button must be used to set key frames after you input the numbers, so doesn't it make sense to tab to it after you change the one value?

jaf

I agree that all controls should be accessible via tabs, I just don't like the order and don't think it's the most efficient way to implement the data entry work-flow.

I just looked at Excel.  If I go to format cell|borders style and click on one, a tab does not take me to the next style, it takes me to a new category -- color, which makes sense since I already chose a style.  If I go to Photoshop and select the Hue/Saturation panel and click in the Hue text entry field and make an entry, a tab doesn't take me to the Hue slider; it takes me to the Saturation text entry field (because at least to me, I already made a Hue selection -- I don't immediately need another way to do that.)

Anyway, like I mentioned, it's not a bug and I can get used to it.  I spent a couple years as a human factors engineer with Raytheon on training devices (flight simulators) and we spent a lot of time designing the most efficient instructor consoles.  Maybe my old habits are swaying my judgement.
(04Dec20) Ryzen 1800x, 970 EVO 1TB M.2 SSD, Corsair Vengeance 64GB DDR4 3200 Mem,  EVGA GeForce GTX 1080 Ti FTW3 Graphics 457.51 (04Dec20), Win 10 Pro x64, Terragen Pro 4.5.43 Frontier, BenchMark 0:10:02

jo

Hi neuspadrin,

Quote from: neuspadrin on May 23, 2009, 09:59:58 PM
Yes but the animation button must be used to set key frames after you input the numbers, so doesn't it make sense to tab to it after you change the one value?

The general expectation is that the flow goes left to right though, not jumping back. I think it's better to work as expected than throw in "odd" behaviour that the user has to figure out. You can shift-tab to move backwards to the animation button in your scenario. The only reason the animation button is tabbed to in the way it is now is because it's created after the other controls in the "row" but then placed to the left of them, not by design.

Regards,

Jo

neuspadrin

If anything then the animation button should be moved to the right of the slider.

Mohawk20

Quote from: neuspadrin on May 24, 2009, 11:27:33 AM
If anything then the animation button should be moved to the right of the slider.

Nah, just Shift-tab! If you're used to that it comes natural. As long as the left to right, top to bottom order is implemented, you can get everywhere with Tab / Shift-Tab.
Howgh!

neuspadrin

oh shift tab reverses?

amazing! never knew that! thanks mohawk! haha, learn something new everyday.  seems i wouldve hit that earlier.

jaf

Quote from: Mohawk20 on May 24, 2009, 01:32:45 PM
Quote from: neuspadrin on May 24, 2009, 11:27:33 AM
If anything then the animation button should be moved to the right of the slider.

Nah, just Shift-tab! If you're used to that it comes natural. As long as the left to right, top to bottom order is implemented, you can get everywhere with Tab / Shift-Tab.

I believe it has nothing to do with left to right.  It's the tab index for each control.  You could program it to do minimum scale, maximum scale, min slider, max slider,  animation button, animation button.  But then I basing this on my C# stuff, so maybe it is different with TG2.
(04Dec20) Ryzen 1800x, 970 EVO 1TB M.2 SSD, Corsair Vengeance 64GB DDR4 3200 Mem,  EVGA GeForce GTX 1080 Ti FTW3 Graphics 457.51 (04Dec20), Win 10 Pro x64, Terragen Pro 4.5.43 Frontier, BenchMark 0:10:02

Mohawk20

Quote from: jaf on May 24, 2009, 03:07:25 PM
Quote from: Mohawk20 on May 24, 2009, 01:32:45 PM
Quote from: neuspadrin on May 24, 2009, 11:27:33 AM
If anything then the animation button should be moved to the right of the slider.

Nah, just Shift-tab! If you're used to that it comes natural. As long as the left to right, top to bottom order is implemented, you can get everywhere with Tab / Shift-Tab.

I believe it has nothing to do with left to right.  It's the tab index for each control.  You could program it to do minimum scale, maximum scale, min slider, max slider,  animation button, animation button.  But then I basing this on my C# stuff, so maybe it is different with TG2.


You're right, and I didn't mean it exactly like that... I meant if the index is natural, like we expect it to be from left to right, it's not important where the buttons are as you can shift-tab backwards anyways. No need to go shuffle the buttons around.
Howgh!

jaf

Sorry -- I thought of that after I sent to post.  8)

At least TG2 is consistent.  I've looked at many of my applications and there's quite a few that seem to have no real order, like they let multiple programmers develop their own preferences instead of an overall design.
(04Dec20) Ryzen 1800x, 970 EVO 1TB M.2 SSD, Corsair Vengeance 64GB DDR4 3200 Mem,  EVGA GeForce GTX 1080 Ti FTW3 Graphics 457.51 (04Dec20), Win 10 Pro x64, Terragen Pro 4.5.43 Frontier, BenchMark 0:10:02