GNOME Bugzilla – Bug 336582
Usage of escape key is inconsistent
Last modified: 2006-05-31 17:57:45 UTC
The usage of the escape key is not consistent across the application. Main window: 1. Focus the Gossip main window 2. Press Escape 3. Main window minimizes (to tray) Chat windows: 1. Focus a Gossip chat window 2. Press Escape actual 3. Nothing happens expected 3. Chat window minimizes
I disagree with this. The main window is a special case. Windows that close on Escape have a response of GTK_RESPONSE_CANCEL (which applies to dialogs). Escape should be used to cancel something not minimise a window in my opinion. Note: I have adopted some windows like the preferences which use "Close" to have a GTK_RESPONSE_CANCEL recently to make sure those dialogs close on Escape. I think this is ok, but using Escape to minimise is just wrong to me.
Hmm, ok. In that case, the Escape key should not cause the main window to be hidden. IIRC, close on escape had something to do with Close vs. Cancel too...
Perhaps. I didn't want a special key to do this anyway, but Escape was agreed before it was set up.
Martyn, only windows with a cancel button should have escape close them... it's in the HIG and all ;) Although we can just not care about that, I guess. We're not all that HIGgy anyway. About the escape on the roster window thing, that's just some crack that we added since a lot of other tray-icon using apps do that and it's convenient. (I don't really like the convention though, I think it's fairly broken to minimize on escape. But I'm also very used to it and would miss it if we were to remove it).
I am closing this, since we are not going to use Escape to close chat windows.
*** Bug 343496 has been marked as a duplicate of this bug. ***
(Also discussed previously in bug 135472, for the record)