GNOME Bugzilla – Bug 646106
Hover bug in entry completion
Last modified: 2018-02-10 03:43:52 UTC
I've stumbled across an odd bug. If you trigger an entry completion popup in a modal window, then move your mouse over the list, then use your keyboard to select an item, it is never selected. It appears to be because the popdown of the list triggers the hover-selection of the popup list. NULL is selected and then the entry thinks the user didn't select anything. I have attached a test case. Make it executable and run it directly (it's a vala script). Then: 0) move your mouse away from window 1) type "tes" 2) move your mouse over the popup list 3) press up a couple times to select an item like test9 4) press enter Nothing happens. What should happen is that test9 is put into the entry and "match selected" is printed in console. You can get that result by not moving your mouse over the window. Or by not making the window modal. I have *a* fix for this that works, but I'm not sure it's *the* fix. Will attach that too.
Oh, and this doesn't seem to be reproducable in gtk3.
Created attachment 184585 [details] test case chmod +x completion ./completion
Created attachment 184586 [details] [review] Proposed patch This patch moves the popdown of the list until after we query the selection.
We're moving to gitlab! As part of this move, we are closing bugs that haven't seen activity in more than 5 years. If this issue is still imporant to you and still relevant with GTK+ 3.22 or master, please consider creating a gitlab issue for it.