summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnno Boland (Gottox) <gottox@s01.de>2009-06-08 09:30:50 +0200
committerEnno Boland (Gottox) <gottox@s01.de>2009-06-08 09:30:50 +0200
commit11efbe62d390bb2092c1ea9504271ec242e4cb57 (patch)
tree49209079340905a02b3b92fe260059acb432dd10
parentffd50068b335bea02a3f477396e9cfe6f906e648 (diff)
downloadsurf-11efbe62d390bb2092c1ea9504271ec242e4cb57.tar.gz
surf-11efbe62d390bb2092c1ea9504271ec242e4cb57.tar.bz2
surf-11efbe62d390bb2092c1ea9504271ec242e4cb57.zip
Backed out changeset ed121082f103
unable to use textfields now. Please implement it in a sane way.
-rw-r--r--surf.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/surf.c b/surf.c
index 989cc51..318d694 100644
--- a/surf.c
+++ b/surf.c
@@ -183,7 +183,7 @@ keypress(GtkWidget* w, GdkEventKey *ev, gpointer d) {
return FALSE;
}
}
- else if(ev->state == GDK_CONTROL_MASK || ev->state == (GDK_CONTROL_MASK | GDK_SHIFT_MASK)) {
+ if(ev->state == GDK_CONTROL_MASK || ev->state == (GDK_CONTROL_MASK | GDK_SHIFT_MASK)) {
switch(ev->keyval) {
case GDK_r:
case GDK_R:
@@ -208,16 +208,6 @@ keypress(GtkWidget* w, GdkEventKey *ev, gpointer d) {
return TRUE;
}
}
- else {
- switch(ev->keyval) {
- case GDK_k:
- webkit_web_view_move_cursor(c->view, GTK_MOVEMENT_DISPLAY_LINES, -1);
- return TRUE;
- case GDK_j:
- webkit_web_view_move_cursor(c->view, GTK_MOVEMENT_DISPLAY_LINES, 1);
- return TRUE;
- }
- }
return FALSE;
}