Take the 2-minute tour ×
User Experience Stack Exchange is a question and answer site for user experience researchers and experts. It's 100% free, no registration required.

Why is it an industry-standard to have a windows automatically grab focus?

From a usability point of view, why is it considered "good practice" for a desktop application to grab (more like hijack) the window focus when opening or whenever the program decides to do so? i.e. why is it even an option to let a window "violently" grab the focus like that? I am asuming it's considered good practice because it seems prevalent on all Windows versions since I can remember. Can't comment on Linux or Mac, but maybe someone else can.

I understand that if I open a program that requires input (a password field or something) I would maybe like that element to be the one that gets focus so that I can start typing the required info ASAP.

However this only works (in my opinion) if I only open one window at a time. The problem arises when I open several programs in succesion and one or more of those request auto-focus.

For example (and this happens to me quite frequently), I open Outlook and Pidgin and SublimeText in succesion. When Oulook gets focused, I start typing my password to login, but in the middle of typing SublimeText gets auto-focused and then half my password is sitting in plain view for anyone to see.

Why is this deemed a good practice? Considering that most people has to look at the keyboard when typing, that means you don't realize the focus has changed to somethig that might expose your password, potentially while someone is standing right next to you.

And even if no passwords or other sensitive information is involved, it's very annoying to be, for example, typing a long document and after several seconds of typing you turn up your head to the screen and find out half of what you typed is not there because some window just hijacked the focus.

So my question is, what are the usability considerations for doing auto-focus, regardless of what the user wants, i.e. if I have a focused window it's because I chose to be that way, why would a computer have the ability to decide otherwise? What would be a better alternative? for example, if programs wouldn't just take the focus and just flash in the task bar (like they already do), is that not sufficient notice to the user? And finally, is there ANY way to disable this annoying behavior in Windows? I'm not sure about details on Linux or Mac, so I can't comment on that.

share|improve this question
    
as for your 'and finally ...' you won't get that answered here, try superuser.com, or Google –  ColinSharpe Feb 6 at 19:05
    
@ColinSharpe You are correct. I think I was just caught in the flow of my rant :P. I actually have searched for a solution to no avail though. –  Acapulco Feb 6 at 19:09
    
It is hardly an industry standard. It is good UX when the window opens as a result of explicit user action, would be kinda weird if it didn't in this case. It is very bad UX for non-explicit opening windows. This is in fact now actively discouraged by Windows. Both in its guidelines as well as in its making "put me in front" much harder to achieve. Unfortunately old habits die hard and code using the old API's is still out there. –  Marjan Venema Feb 7 at 11:53
1  
I'm not sure it's good ux even when the user has triggered the action by opening the application, only when the user specifically triggers a 'view this application' operation –  ColinSharpe Feb 10 at 20:31
    
Just speculating (so not an answer), but I think application models have been slow-ish to catch up with the notion that typically when you launch an application you have no intention of looking at it and therefore you want to have to take a separate action to see it. It would better if an app were given the focus and then starts all its slow stuff (during which it can lose the focus) rather than doing all its slow stuff and takes focus at the end of that. That would accommodate both users who want to see what they run and users who don't. –  Steve Jessop Apr 4 at 13:38
show 1 more comment

1 Answer

up vote 1 down vote accepted

This is not good UX and wouldn't be considered best practice by any user experience experts, except in extreme circumstances such as warning workers in a dangerous environment that something was seriously wrong. Not a typical desktop application !

The reason is simply that the software has been lazily implemented in this particular context. Or possibly because it has been designed like this in order to try and get users to click on an advertising link.

Some really big folk in tech tell us this is not a good idea:

http://www.codinghorror.com/blog/2007/12/please-dont-steal-my-focus.html

And it's even considered a type of bug by Mozilla:

https://bugzilla.mozilla.org/buglist.cgi?quicksearch=focus+stealing

And an answer right here with plenty of votes mentioning focus stealing as a UX anti pattern:

What are your desktop UI pet peeves?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.