GNOME Bugzilla – Bug 330181
shift-enter fails with typeahead popup
Last modified: 2016-11-13 09:41:06 UTC
Please describe the problem: with the typeahead entry visible, shift-enter does nothing Steps to reproduce: 1. open a folder in icon view 2. type beginning of a folder name 3. press shift-enter Actual results: nothing Expected results: open highlighted target folder and close current folder Does this happen every time? yes Other information: HEAD 2006-02-07 ~ 2.13.3 worked in 2.12.2 (no typeahead popup) workaround: esc first
Easily reproducible, confirming.
Created attachment 59680 [details] [review] a trivial fix for the problem.
elevating priority - this is a patch that should be looked at asap.
Thanks for your efforts! You may want to check for (event->state & GDK_SHIFT_MASK) == GDK_SHIFT_MASK instead of just ORing them, and you also forgot to include code for the list view. As always, maybe you could submit it to the mailing list for review after applying those changes? :)
crikey! didn't realise that these were two different things. if you happen to know the source file for the other it would be appreciated :)
Right. So the reason I didn't find the other code is because it lives in gtk+/gtk/gtktreeview.c In order to add the check for shift+enter I need to be able to get to tree_view->priv->search_window so I can add my own key_press_event hander to it. I see no way to do this. BTW: /usr/include/gtk-2.0/gdk/gdktypes.h: GDK_SHIFT_MASK = 1 << 0, so my code there is valid (but will be fixed for clarity).
Filed a GTK bug for some API love. It doesn't look like this bug will be properly fixable soon.
WHy was this moved to Accessibility?
A good question. It was definitely an accident.
*** Bug 333914 has been marked as a duplicate of this bug. ***
*** Bug 343572 has been marked as a duplicate of this bug. ***
*** Bug 344453 has been marked as a duplicate of this bug. ***
*** Bug 345111 has been marked as a duplicate of this bug. ***
*** Bug 359844 has been marked as a duplicate of this bug. ***
Note that alt-downarrow should do the same as enter, and that shift-alt-down should do the same as shift-enter.
Typeahead has been replaced by search which doesn't exhibit this issue.