summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-icon-container.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2005-10-18 14:22:54 +0000
committerAlexander Larsson <alexl@src.gnome.org>2005-10-18 14:22:54 +0000
commit675ad5e9c0fb6ddfa214eec648201257482d892f (patch)
tree3c4767a665206bb63bb21979211802ee80498c7c /libnautilus-private/nautilus-icon-container.c
parent627737fb1723927509f38f302ef3fdf2a067c74b (diff)
downloadnautilus-675ad5e9c0fb6ddfa214eec648201257482d892f.tar.gz
Don't send slash to typeahead
2005-10-18 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-icon-container.c: (key_press_event): Don't send slash to typeahead * src/nautilus-location-dialog.[ch]: Add nautilus_location_dialog_set_location. * src/nautilus-navigation-window-menus.c: * src/nautilus-navigation-window.c: * src/nautilus-spatial-window.c: * src/nautilus-window.[ch]: Open location dialog/entry when you press '/'.
Diffstat (limited to 'libnautilus-private/nautilus-icon-container.c')
-rw-r--r--libnautilus-private/nautilus-icon-container.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-icon-container.c b/libnautilus-private/nautilus-icon-container.c
index c114d95ed..577757a3a 100644
--- a/libnautilus-private/nautilus-icon-container.c
+++ b/libnautilus-private/nautilus-icon-container.c
@@ -4205,7 +4205,8 @@ key_press_event (GtkWidget *widget,
/* We pass the event to the search_entry. If its text changes, then we
* start the typeahead find capabilities.
* Copied from NautilusIconContainer */
- if (!handled) {
+ if (!handled &&
+ event->keyval != GDK_slash /* don't steal slash key event, used for "go to" */) {
GdkEvent *new_event;
char *old_text;
const char *new_text;