views:

169

answers:

1

In Visual Studio .NET the TabStop property is by default set to True for all command and input fields. Most other designers have some concept of tab control for "power users" who don't like to switch to their mouse a lot.

This property simply toggles the ability for the control to receive focus when the user hits the tab button to iterate through the tab order.

I've heard many developers talk about whether or not every field should be in the tab order. Here are some of the arguments I've heard on either side:

Always On:

  1. Turning off the tab order to a button forces the user to take his hands off the
  2. keyboard to click it which slows down your flow.
  3. Microsoft defaults it to true for a reason.
  4. Disabled/hidden buttons don't get focus anyway.

Sometimes Off:

  1. Cancel buttons and delete buttons should be outside the tab order to avoid accidental execution.
  2. Yes its out of the tab order, but you should set a mnemonic so you can still access it with the keyboard.

My question revolves around good design principles:

  1. Is there ever a good reason to turn TabStop off for a Command button?
  2. Is there ever a good reason to turn TabStop off for an input field?

If you would say yes to either of these, do you know of any well-known program examples? such as Windows Media player? or somewhere in the control panel or something as an example of a field/button without a tab order?

+2  A: 

Sure. Microsoft Outlook. You tab through the "To", "CC' and other fields, but don't have a tab stop on the tool strips (or on the "To..." and "Cc..." buttons for that matter).

On my layout, put the cursor in the "To" TextBox, hit tab, and yo jump to the "CC" text box. Tab again to go to the subject TextBox, and finally the next tab puts you into the body of the email (where a TAB just inserts a tab in the body).

There are plenty of UI elements on complex forms that the user almost never needs to use, but are there for those odd cases. Open up a new email in Outlook and just look at all the buttons in there. Imagine having to tab through all of those.

There are plenty of apps where this is done, and it's for usability. It's often quite necessary to remove tab stops.

David Stratton
Actually, there are tabstops on the To... and Cc... buttons: they come before the tabstops for the respective fields. Shift-Tab from the To field will focus the Cc... button, and another Shift-Tab will focus the To... button.
ephemient
The toolstrip does have a tab order as well, though you can't get to it through the normal tab order. It is as if it only has tab-stop turned onto those controls if your cursor is already in the toolstrip.
Jrud
I thought so, too, but I tried it and the tab stops aren't there in the version of Outlook I'm using (2003). I know that the tab stops were there on other versions, so I'm wondering if/when this changed.
David Stratton
Or maybe it's some setting on my work PC.
David Stratton
There could be specific reasons to not have a control not have tabstop. But do people with disabilities gain benefit or expect the tabstop to be there?
ElGringoGrande
HAHA I think I just proved my point... I was trying to work through the tab order on the outlook page and I accidentally tabbed to the send button and sent a blank e-mail titled: "Adof" to my co-worker and boss.
Jrud
@el.gringogrande - good point. I guess I work in a pretty controlled environment and haven't had to deal with that yet. Accessibility is one of my weak points.
David Stratton