Commit 2f1c80cc authored by William Jon McCann's avatar William Jon McCann

Don't use BackSpace to go to parent folder

It interferes with searching, is totally unexpected, and there
are at least 3 other ways to do this already.
parent 396c1f50
...@@ -1536,7 +1536,6 @@ create_and_set_up_tree_view (NautilusListView *view) ...@@ -1536,7 +1536,6 @@ create_and_set_up_tree_view (NautilusListView *view)
{ {
GtkCellRenderer *cell; GtkCellRenderer *cell;
GtkTreeViewColumn *column; GtkTreeViewColumn *column;
GtkBindingSet *binding_set;
AtkObject *atk_obj; AtkObject *atk_obj;
GList *nautilus_columns; GList *nautilus_columns;
GList *l; GList *l;
...@@ -1549,10 +1548,6 @@ create_and_set_up_tree_view (NautilusListView *view) ...@@ -1549,10 +1548,6 @@ create_and_set_up_tree_view (NautilusListView *view)
(GDestroyNotify) g_object_unref); (GDestroyNotify) g_object_unref);
gtk_tree_view_set_enable_search (view->details->tree_view, FALSE); gtk_tree_view_set_enable_search (view->details->tree_view, FALSE);
/* Don't handle backspace key. It's used to open the parent folder. */
binding_set = gtk_binding_set_by_class (GTK_WIDGET_GET_CLASS (view->details->tree_view));
gtk_binding_entry_remove (binding_set, GDK_KEY_BackSpace, 0);
view->details->drag_dest = view->details->drag_dest =
nautilus_tree_view_drag_dest_new (view->details->tree_view); nautilus_tree_view_drag_dest_new (view->details->tree_view);
......
...@@ -1452,7 +1452,6 @@ nautilus_window_key_press_event (GtkWidget *widget, ...@@ -1452,7 +1452,6 @@ nautilus_window_key_press_event (GtkWidget *widget,
} }
if (event->keyval != GDK_KEY_slash /* don't steal slash key event, used for "go to" */ && if (event->keyval != GDK_KEY_slash /* don't steal slash key event, used for "go to" */ &&
event->keyval != GDK_KEY_BackSpace &&
event->keyval != GDK_KEY_Delete) { event->keyval != GDK_KEY_Delete) {
if (nautilus_window_slot_handle_event (window->details->active_slot, event)) { if (nautilus_window_slot_handle_event (window->details->active_slot, event)) {
toggle_toolbar_search_button (window, TRUE); toggle_toolbar_search_button (window, TRUE);
...@@ -2248,8 +2247,6 @@ nautilus_window_class_init (NautilusWindowClass *class) ...@@ -2248,8 +2247,6 @@ nautilus_window_class_init (NautilusWindowClass *class)
G_TYPE_NONE, 1, NAUTILUS_TYPE_WINDOW_SLOT); G_TYPE_NONE, 1, NAUTILUS_TYPE_WINDOW_SLOT);
binding_set = gtk_binding_set_by_class (class); binding_set = gtk_binding_set_by_class (class);
gtk_binding_entry_add_signal (binding_set, GDK_KEY_BackSpace, 0,
"go-up", 0);
gtk_binding_entry_add_signal (binding_set, GDK_KEY_F5, 0, gtk_binding_entry_add_signal (binding_set, GDK_KEY_F5, 0,
"reload", 0); "reload", 0);
gtk_binding_entry_add_signal (binding_set, GDK_KEY_slash, 0, gtk_binding_entry_add_signal (binding_set, GDK_KEY_slash, 0,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment