After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 334098 - Keys P and N in "open file" dialog have special meaning
Keys P and N in "open file" dialog have special meaning
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
unspecified
Other All
: Normal minor
: ---
Assigned To: Federico Mena Quintero
Federico Mena Quintero
Depends on:
Blocks:
 
 
Reported: 2006-03-10 07:44 UTC by Torben Putkonen
Modified: 2006-03-10 17:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gtk2-334098-tree-view-search-P-N.diff (4.55 KB, patch)
2006-03-10 17:19 UTC, Federico Mena Quintero
committed Details | Review

Description Torben Putkonen 2006-03-10 07:44:13 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:
Comment 1 Federico Mena Quintero 2006-03-10 17:19:49 UTC
Created attachment 61045 [details] [review]
gtk2-334098-tree-view-search-P-N.diff
Comment 2 Federico Mena Quintero 2006-03-10 17:20:36 UTC
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.