go out of edit mode when the window goes out of focus
we need to go out of edit mode when the desktop window goes out of focus, *not* the item itself