GNOME Bugzilla – Bug 334098
Keys P and N in "open file" dialog have special meaning
Last modified: 2006-03-10 17:20:36 UTC
In Gnome file dialog it is possible to type the name of the file one wants to open. Upper case keys P and N are however mapped to "previous" and "next". If one wants to select directory "Projects" by typing the first few letters and pressing enter, one has to first type some other key and press backspace before typing "Pro...". How to reproduce: 1. Open gedit 2. Open "open file" dialog 3. Type "Pro" Observed behaviour: - Directory "rock" is selected. Expected behaviour: - Directory "Projects" should have been selected. Other information:
Created attachment 61045 [details] [review] gtk2-334098-tree-view-search-P-N.diff
Fixed in the HEAD and gtk-2-8 branches. 2006-03-10 Federico Mena Quintero <federico@novell.com> Make Shift-P and Shift-N activate typeahead in GtkTreeView (i.e. they are just normal capital letters). Fixes bug #334098. * gtk/gtktreeview.c (gtk_tree_view_add_move_binding): Add an "add_shifted_binding" argument which determines whether we'll add the same binding with GDK_SHIFT_MASK. (gtk_tree_view_class_init): Use add_shifted_binding=FALSE for GDK_p and GDK_n; use TRUE for all the rest.