Windows Focus Rikard Edgren
That applications have focus on the right place is essential to a good user experience.
You have to trust that pressing Del on keyboard will have the intended effect.
Problems with this is very common, at least on Windows, and especially in applications with dialogs and panels and stuff of different types.
Addressing symptoms agressively easily ends up with flickering dialogs, and sometimes worse user experience.
Less is less, but it has to be the right code…
Focus can also cause miscellaneous functional problems;
this is my latest favorite example:
Client: Windows Vista or Windows 7, .NET 3.5, Office 2007
1. Launch Word 2007
2. Type any text
3. Add a Footer, and add any text
4. Put focus on “main text”
5. Press Ctrl+F and search for something you wrote in Footer
6. When the footnote is found, click on the Footer title bar (this is the crucial step!)
7. Click “Find Next” again
8. Click OK in dialog “Word has finished searching the document”
Result: Word crashes.
Expected: That I am able to continue writing my document.