Commit 39900836 authored by Anders Carlsson's avatar Anders Carlsson Committed by Anders Carlsson

When tab is pressed and the text view isn't editable, move the focus

2002-01-03  Anders Carlsson  <andersca@gnu.org>

	* gtk/gtktextview.c (gtk_text_view_key_press_event): When
	tab is pressed and the text view isn't editable,
	move the focus instead.
parent 0ea3acb0
2002-01-03 Anders Carlsson <andersca@gnu.org>
* gtk/gtktextview.c (gtk_text_view_key_press_event): When
tab is pressed and the text view isn't editable,
move the focus instead.
* gtk/gtkstyle.c (gtk_default_draw_focus): Free dash list if
necessary.
......
2002-01-03 Anders Carlsson <andersca@gnu.org>
* gtk/gtktextview.c (gtk_text_view_key_press_event): When
tab is pressed and the text view isn't editable,
move the focus instead.
* gtk/gtkstyle.c (gtk_default_draw_focus): Free dash list if
necessary.
......
2002-01-03 Anders Carlsson <andersca@gnu.org>
* gtk/gtktextview.c (gtk_text_view_key_press_event): When
tab is pressed and the text view isn't editable,
move the focus instead.
* gtk/gtkstyle.c (gtk_default_draw_focus): Free dash list if
necessary.
......
2002-01-03 Anders Carlsson <andersca@gnu.org>
* gtk/gtktextview.c (gtk_text_view_key_press_event): When
tab is pressed and the text view isn't editable,
move the focus instead.
* gtk/gtkstyle.c (gtk_default_draw_focus): Free dash list if
necessary.
......
2002-01-03 Anders Carlsson <andersca@gnu.org>
* gtk/gtktextview.c (gtk_text_view_key_press_event): When
tab is pressed and the text view isn't editable,
move the focus instead.
* gtk/gtkstyle.c (gtk_default_draw_focus): Free dash list if
necessary.
......
2002-01-03 Anders Carlsson <andersca@gnu.org>
* gtk/gtktextview.c (gtk_text_view_key_press_event): When
tab is pressed and the text view isn't editable,
move the focus instead.
* gtk/gtkstyle.c (gtk_default_draw_focus): Free dash list if
necessary.
......
2002-01-03 Anders Carlsson <andersca@gnu.org>
* gtk/gtktextview.c (gtk_text_view_key_press_event): When
tab is pressed and the text view isn't editable,
move the focus instead.
* gtk/gtkstyle.c (gtk_default_draw_focus): Free dash list if
necessary.
......
......@@ -3596,7 +3596,14 @@ gtk_text_view_key_press_event (GtkWidget *widget, GdkEventKey *event)
event->keyval == GDK_ISO_Left_Tab) &&
!(event->state & GDK_CONTROL_MASK))
{
gtk_text_view_commit_text (text_view, "\t");
/* If the text isn't editable, move the focus instead */
if (text_view->editable)
gtk_text_view_commit_text (text_view, "\t");
else
gtk_text_view_move_focus (text_view,
(event->state & GDK_SHIFT_MASK) ?
GTK_DIR_TAB_BACKWARD: GTK_DIR_TAB_FORWARD);
retval = TRUE;
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment