IanG on Tap

Ian Griffiths in Weblog Form (RSS 2.0)

Blog Navigation

April (2018)

(1 item)

August (2014)

(1 item)

July (2014)

(5 items)

April (2014)

(1 item)

March (2014)

(1 item)

January (2014)

(2 items)

November (2013)

(2 items)

July (2013)

(4 items)

April (2013)

(1 item)

February (2013)

(6 items)

September (2011)

(2 items)

November (2010)

(4 items)

September (2010)

(1 item)

August (2010)

(4 items)

July (2010)

(2 items)

September (2009)

(1 item)

June (2009)

(1 item)

April (2009)

(1 item)

November (2008)

(1 item)

October (2008)

(1 item)

September (2008)

(1 item)

July (2008)

(1 item)

June (2008)

(1 item)

May (2008)

(2 items)

April (2008)

(2 items)

March (2008)

(5 items)

January (2008)

(3 items)

December (2007)

(1 item)

November (2007)

(1 item)

October (2007)

(1 item)

September (2007)

(3 items)

August (2007)

(1 item)

July (2007)

(1 item)

June (2007)

(2 items)

May (2007)

(8 items)

April (2007)

(2 items)

March (2007)

(7 items)

February (2007)

(2 items)

January (2007)

(2 items)

November (2006)

(1 item)

October (2006)

(2 items)

September (2006)

(1 item)

June (2006)

(2 items)

May (2006)

(4 items)

April (2006)

(1 item)

March (2006)

(5 items)

January (2006)

(1 item)

December (2005)

(3 items)

November (2005)

(2 items)

October (2005)

(2 items)

September (2005)

(8 items)

August (2005)

(7 items)

June (2005)

(3 items)

May (2005)

(7 items)

April (2005)

(6 items)

March (2005)

(1 item)

February (2005)

(2 items)

January (2005)

(5 items)

December (2004)

(5 items)

November (2004)

(7 items)

October (2004)

(3 items)

September (2004)

(7 items)

August (2004)

(16 items)

July (2004)

(10 items)

June (2004)

(27 items)

May (2004)

(15 items)

April (2004)

(15 items)

March (2004)

(13 items)

February (2004)

(16 items)

January (2004)

(15 items)

Blog Home

RSS 2.0

Writing

Programming C# 5.0

Programming WPF

Other Sites

Interact Software

I Hate Dialog Boxes that Grab the Focus

Thursday 15 March, 2007, 04:44 PM

One of my least favourite features of Windows is the way dialog boxes can pop open and grab the keyboard focus when you're in the middle of typing into another application.

Just now, for example, I was two DVD-Rs into a backup of my machine, when a dialog popped open asking me to insert the third disk. Problem is, I was in the middle of typing a sentence into an instant messenger window - I didn't want to sit and do nothing while the lengthy backup process ran. (Who says men can't multitask? :) ) So when disk prompt dialog got the focus, it started stealing characters that I had intended to be part of the IM conversation. Apparently it interpreted these as me clicking the Cancel button, judging by the "Backup Cancelled" message that followed.

I hate this aspect of Windows, and always have. I've long since lost count of the number of times I've been typing and some system modal dialog popped up and then vanished again before I even had a chance to read it. And I find myself wondering "What did that say, and what have operation did I just authorise, or possibly cancel, on my system?" The backup today is unusual in that I do at least know exactly what got cancelled...

What's particularly irritating is that Windows seems to have a mechanism to avoid this. When most applications try to pop to the front, Windows just ignores them, and makes their entry on the task bar light up instead. That way I can go and deal with them when I'm ready. That's a perfect solution to the problem. So why did they fall at the last fence and not bother to implement this for certain dialogs? What's so special about backup that it's OK for it to get in my face at exactly the wrong moment?

I can see that there might be some dialogs that are so important that I'm really not allowed to ignore them. I'd prefer it if Windows didn't force that on me, but if there really is no alternative, then it certainly shouldn't make it so easy to dismiss the thing before I've had a chance to see it. If there really is a need for dialogs that pop right to the front without notice (and I'm not really convinced there is), then Windows needs something to detect that I'm in the middle of typing, and if a dialog box steals the focus mid-sentence, it should avoid processing keyboard input for a short while, or better, let the dialog appear, but don't move the focus to it.

But really, I'd prefer it if nothing had the ability to steal the focus when I'm in the middle of typing something.

Copyright © 2002-2024, Interact Software Ltd. Content by Ian Griffiths. Please direct all Web site inquiries to webmaster@interact-sw.co.uk