Skip to content

Commit

Permalink
nemo-places-sidebar.c: Remove delete key action for removing
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mtwebster committed Jan 2, 2025
1 parent 5e8ff02 commit 2e3c6fc
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/nemo-places-sidebar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2e3c6fc

Please sign in to comment.