changeset: 47:88518c002e7e
user: Enno Boland (tox) <tox_AT_s01.de>
date: Sun Sep 06 10:18:30 2009 +0200
files: surf.c
description:
reorganized eventhandling.
diff -r bacae860b1a9 -r 88518c002e7e surf.c
--- a/surf.c Sun Sep 06 10:10:13 2009 +0200
+++ b/surf.c Sun Sep 06 10:18:30 2009 +0200
@@ -196,23 +196,19 @@
}
if(ev->state & GDK_CONTROL_MASK) {
switch(ev->keyval) {
+ case GDK_P:
+ webkit_web_frame_print(webkit_web_view_get_main_frame(c->view));
+ return TRUE;
case GDK_p:
- 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;
-
+ gtk_clipboard_request_text(gtk_clipboard_get(GDK_SELECTION_PRIMARY), pasteurl, c);
case GDK_y:
gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION_PRIMARY), webkit_web_view_get_uri(c->view), -1);
return TRUE;
case GDK_r:
+ webkit_web_view_reload(c->view);
+ return TRUE;
case GDK_R:
- if((ev->state & GDK_SHIFT_MASK))
- webkit_web_view_reload_bypass_cache(c->view);
- else
- webkit_web_view_reload(c->view);
+ webkit_web_view_reload_bypass_cache(c->view);
return TRUE;
case GDK_b:
return TRUE;
Received on Sun Sep 06 2009 - 08:54:38 UTC
This archive was generated by hypermail 2.2.0 : Sun Sep 06 2009 - 09:00:07 UTC