aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-history-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ephy-history-window.c')
-rw-r--r--src/ephy-history-window.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/ephy-history-window.c b/src/ephy-history-window.c
index 88de5b344..dcbaf2e89 100644
--- a/src/ephy-history-window.c
+++ b/src/ephy-history-window.c
@@ -614,6 +614,25 @@ pages_filter (EphyHistoryWindow *editor,
ephy_node_filter_done_changing (editor->priv->pages_filter);
}
+static gboolean
+key_pressed_cb (EphyNodeView *view,
+ GdkEventKey *event,
+ EphyHistoryWindow *editor)
+{
+ switch (event->keyval)
+ {
+ case GDK_Delete:
+ case GDK_KP_Delete:
+ cmd_delete (NULL, editor);
+ return TRUE;
+
+ default:
+ break;
+ }
+
+ return FALSE;
+}
+
static void
reset_search_entry (EphyHistoryWindow *editor)
{
@@ -914,6 +933,10 @@ ephy_history_window_construct (EphyHistoryWindow *editor)
"show_popup",
G_CALLBACK (ephy_history_window_show_popup_cb),
editor);
+ g_signal_connect (G_OBJECT (pages_view),
+ "key_press_event",
+ G_CALLBACK (key_pressed_cb),
+ editor);
ephy_state_add_window (GTK_WIDGET (editor),
"history_window",