[file-roller] do not activate 'file delete' when pressing Delete in the filter entry
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] do not activate 'file delete' when pressing Delete in the filter entry
- Date: Mon, 26 Jun 2017 08:42:10 +0000 (UTC)
commit ce50550ec08296b48af7091987b5fd16c28929a4
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Jun 26 10:21:39 2017 +0200
do not activate 'file delete' when pressing Delete in the filter entry
src/fr-window-actions-entries.h | 1 -
src/fr-window.c | 7 +++++++
2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/fr-window-actions-entries.h b/src/fr-window-actions-entries.h
index fafcb86..57aad68 100644
--- a/src/fr-window-actions-entries.h
+++ b/src/fr-window-actions-entries.h
@@ -64,7 +64,6 @@ static const GActionEntry fr_window_actions[] = {
static const FrAccelerator fr_window_accelerators[] = {
{ "close", "<Control>w" },
- { "delete", "Delete" },
{ "deselect-all", "<Shift><Control>a" },
{ "edit-copy", "<Control>c" },
{ "extract-files", "<Control>e" },
diff --git a/src/fr-window.c b/src/fr-window.c
index 978d4d6..f480ea8 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -4859,6 +4859,13 @@ key_press_cb (GtkWidget *widget,
}
break;
+ case GDK_KEY_Delete:
+ if (! gtk_widget_has_focus (window->priv->filter_entry)) {
+ fr_window_activate_delete (window, NULL, NULL);
+ retval = TRUE;
+ }
+ break;
+
default:
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]