GNOME Bugzilla – Bug 328710
Can't press Remove in Cookie view repeatedly
Last modified: 2008-08-01 14:07:24 UTC
The remove button in PDM is behaving a bit strangely -- if you click Remove to remove one cookie and then click it again without moving the mouse out of the button area (to try to remove the next cookie) nothing happens (although the button does get focused). It works fine if you move your mouse outside the confines of the button and then click it. Also if you focus the Remove button and press spacebar to remove a cookie, the focus then moves away somewhere -- i would expect the focus to remain on the remove button so further cookies can be removed. This might apply to the passwords bit too.
It's the infamouse gtk+ bug 56070, but maybe we can work around it.
*** Bug 347365 has been marked as a duplicate of this bug. ***
Created attachment 100877 [details] [review] workaround Attached patch is a workaround for this bug, as for http://bugzilla.gnome.org/show_bug.cgi?id=56070#c90 and it works fine. It also restores the right focus to the button after having been activated, so that user can delete by repeatedly press enter or spacebar.
I'm sorry, but we should get the gtk bug fixed, not do bogus workarounds.
Now that bug 56070 is fixed, is there anything left to do here?
If you press space bar when the button has focus, the focus is lost, so you can't keep space-bar'ing. Can we use: + /* Restore the focus to the button */ + gtk_widget_grab_focus (button); from Cosimo's patch?
Yes.
Mr García López, please commit the grab_focus fix!
Done. Closing as FIXED, as it seems there's nothing else we can do here. ------------------------------------------------------------------------ r8372 | cosimoc | 2008-08-01 15:10:07 +0200 (Fri, 01 Aug 2008) | 2 lines Bug #328710. Re-focus the "Remove" button after the selection has been deleted.
And to 2-24!.
Done.