Backed out changeset ed121082f103
unable to use textfields now. Please implement it in a sane way.
This commit is contained in:
parent
ffd50068b3
commit
11efbe62d3
12
surf.c
12
surf.c
|
@ -183,7 +183,7 @@ keypress(GtkWidget* w, GdkEventKey *ev, gpointer d) {
|
||||||
return FALSE;
|
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) {
|
switch(ev->keyval) {
|
||||||
case GDK_r:
|
case GDK_r:
|
||||||
case GDK_R:
|
case GDK_R:
|
||||||
|
@ -208,16 +208,6 @@ keypress(GtkWidget* w, GdkEventKey *ev, gpointer d) {
|
||||||
return TRUE;
|
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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue