GNOME Bugzilla – Bug 645243
Empathy inline chatting switches to window when spacebar is pressed
Last modified: 2011-03-21 14:19:10 UTC
Steps to reproduce: 1. Open a chat window in Empathy 2. Try to talk using the message tray, hit the space bar. 3. The message tray closes and the chat window is brought to focus, whether it was on the current workspace or not.
The bug was caused by 06d2c0af3502295a76824191110c07c3e8d7fc30 messageTray: dismiss notifications on click, not button-release-event Which was committed due to bug 642978 Note that the same thing also happens if you enter a word and press "Enter".
Created attachment 183931 [details] [review] StButton: fix handling of Space/Enter -> click StButton was mistakenly considering any Space/Enter KEY_RELEASE to be a click, when in fact it should only count as a click if it also got the corresponding KEY_PRESS as well. This meant that when typing in a chat notification, any Space/Enter keypress would dismiss the notification, since the StEntry would take the PRESS event but ignore the RELEASE, allowing it to propagate to the notification itself, which would treat it as a click. ==== I can't test this (because empathy crashes with a linker error because of my newer-than-new NetworkManager packages), but I'm pretty sure this should fix it.
I just tested it, and it works perfectly. Enter/Spacebar behave as expected, and the bubble gets dismissed only on mouse left-click. Thanks!
Review of attachment 183931 [details] [review]: Looks fine. Guess there could be some crazy scenario where you clicked on the button held down, then hit enter in the entry, but who has expectations about that...
Attachment 183931 [details] pushed as e886a3d - StButton: fix handling of Space/Enter -> click