diff options
author | Peter Hofmann <scm@uninformativ.de> | 2014-06-14 16:28:02 +0200 |
---|---|---|
committer | Peter Hofmann <scm@uninformativ.de> | 2014-06-14 16:28:02 +0200 |
commit | 8b479ffbd2b23fb763a868506a9f16f3437cea64 (patch) | |
tree | 5ae010d6ecdf08e7697750c7ab81f3e9382e03fa /zea.c | |
parent | 204beb9adcf6d899381af25c9b56197819bbc274 (diff) | |
download | lariza-8b479ffbd2b23fb763a868506a9f16f3437cea64.tar.gz |
Escape cancels loading
Diffstat (limited to 'zea.c')
-rw-r--r-- | zea.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -367,6 +367,12 @@ zea_web_view_key(GtkWidget *widget, GdkEvent *event, gpointer data) return TRUE; } } + else if (((GdkEventKey *)event)->keyval == GDK_KEY_Escape) + { + webkit_web_view_stop_loading(WEBKIT_WEB_VIEW(c->web_view)); + gtk_statusbar_pop(GTK_STATUSBAR(c->status), 1); + gtk_statusbar_push(GTK_STATUSBAR(c->status), 1, "Aborted."); + } } return FALSE; |