Introduction
Introduction Statistics Contact Development Disclaimer Help
treorganized eventhandling. - surf - customized build of surf, the suckless web…
git clone git://src.adamsgaard.dk/surf
Log
Files
Refs
README
LICENSE
---
commit c9f3583ef2a8dddc3db3ae2ede17b0fb91c483da
parent f44c1d392e745b3449508a244bd42227a8b5db99
Author: Enno Boland (tox) <[email protected]>
Date: Sun, 6 Sep 2009 10:18:30 +0200
reorganized eventhandling.
Diffstat:
M surf.c | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
---
diff --git a/surf.c b/surf.c
t@@ -196,23 +196,19 @@ keypress(GtkWidget* w, GdkEventKey *ev, Client *c) {
}
if(ev->state & GDK_CONTROL_MASK) {
switch(ev->keyval) {
- case GDK_p:
case GDK_P:
- if((ev->state & GDK_SHIFT_MASK))
- webkit_web_frame_print(webkit_web_view_get_mai…
- else
- gtk_clipboard_request_text(gtk_clipboard_get(G…
+ webkit_web_frame_print(webkit_web_view_get_main_frame(…
return TRUE;
-
+ case GDK_p:
+ gtk_clipboard_request_text(gtk_clipboard_get(GDK_SELEC…
case GDK_y:
gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION…
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;
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.