From 2e3c6fc62c07a89f00c913e6d0c4e3d6f593a193 Mon Sep 17 00:00:00 2001 From: Michael Webster Date: Thu, 2 Jan 2025 13:35:52 -0500 Subject: [PATCH] nemo-places-sidebar.c: Remove delete key action for removing bookmarks. Deleting bookmarks from the sidebar should require more deliberation than just a keyboard shortcut, and it's not always obvious that the sidebar is focused and *not* the main directory view, where this shortcut is more useful. Fixes #3504. --- src/nemo-places-sidebar.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/nemo-places-sidebar.c b/src/nemo-places-sidebar.c index a131464b1..cac71649f 100644 --- a/src/nemo-places-sidebar.c +++ b/src/nemo-places-sidebar.c @@ -3329,13 +3329,6 @@ bookmarks_key_press_event_cb (GtkWidget *widget, return TRUE; } - if ((event->keyval == GDK_KEY_Delete - || event->keyval == GDK_KEY_KP_Delete) - && (event->state & modifiers) == 0) { - remove_selected_bookmarks (sidebar); - return TRUE; - } - if ((event->keyval == GDK_KEY_F2) && (event->state & modifiers) == 0) { rename_selected_bookmark (sidebar);