diff options
author | Enno Boland (tox) <tox@s01.de> | 2009-09-06 10:10:13 +0200 |
---|---|---|
committer | Enno Boland (tox) <tox@s01.de> | 2009-09-06 10:10:13 +0200 |
commit | f44c1d392e745b3449508a244bd42227a8b5db99 (patch) | |
tree | 22d1b78b6579fdfc3a7bb51d961c487704e1b686 | |
parent | e8deb956d4559c357659ae4cddb453b3e822ee92 (diff) | |
download | surf-f44c1d392e745b3449508a244bd42227a8b5db99.tar.gz surf-f44c1d392e745b3449508a244bd42227a8b5db99.tar.bz2 surf-f44c1d392e745b3449508a244bd42227a8b5db99.zip |
Applied print patch from pancake
-rw-r--r-- | surf.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -197,8 +197,13 @@ keypress(GtkWidget* w, GdkEventKey *ev, Client *c) { if(ev->state & GDK_CONTROL_MASK) { switch(ev->keyval) { case GDK_p: - gtk_clipboard_request_text(gtk_clipboard_get(GDK_SELECTION_PRIMARY), pasteurl, c); + case GDK_P: + if((ev->state & GDK_SHIFT_MASK)) + webkit_web_frame_print(webkit_web_view_get_main_frame(c->view)); + else + gtk_clipboard_request_text(gtk_clipboard_get(GDK_SELECTION_PRIMARY), pasteurl, c); return TRUE; + case GDK_y: gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION_PRIMARY), webkit_web_view_get_uri(c->view), -1); return TRUE; |