Commit 15a544de authored by Padraig O'Briain's avatar Padraig O'Briain

gtk/gtktextview.c Add support for Ctrl+Up/Down arrow to move cursor to

* gtk/gtktextview.c
Add support for Ctrl+Up/Down arrow to move cursor to beginning
of previous/next paragraph. If within a paragraph cursor moves to
beginning of that paragraph.
parent 19fcc6be
2001-09-12 Padraig O'Briain <padraig.obriain@sun.com>
* gtk/gtktextview.c
Add support for Ctrl+Up/Down arrow to move cursor to beginning
of previous/next paragraph. If within a paragraph cursor moves to
beginning of that paragraph.
2001-09-12 Jakub Steiner <jimmac@ximian.com>
* gtk/stock-icons/dialog_question.png: replacing the shaky
......
2001-09-12 Padraig O'Briain <padraig.obriain@sun.com>
* gtk/gtktextview.c
Add support for Ctrl+Up/Down arrow to move cursor to beginning
of previous/next paragraph. If within a paragraph cursor moves to
beginning of that paragraph.
2001-09-12 Jakub Steiner <jimmac@ximian.com>
* gtk/stock-icons/dialog_question.png: replacing the shaky
......
2001-09-12 Padraig O'Briain <padraig.obriain@sun.com>
* gtk/gtktextview.c
Add support for Ctrl+Up/Down arrow to move cursor to beginning
of previous/next paragraph. If within a paragraph cursor moves to
beginning of that paragraph.
2001-09-12 Jakub Steiner <jimmac@ximian.com>
* gtk/stock-icons/dialog_question.png: replacing the shaky
......
2001-09-12 Padraig O'Briain <padraig.obriain@sun.com>
* gtk/gtktextview.c
Add support for Ctrl+Up/Down arrow to move cursor to beginning
of previous/next paragraph. If within a paragraph cursor moves to
beginning of that paragraph.
2001-09-12 Jakub Steiner <jimmac@ximian.com>
* gtk/stock-icons/dialog_question.png: replacing the shaky
......
2001-09-12 Padraig O'Briain <padraig.obriain@sun.com>
* gtk/gtktextview.c
Add support for Ctrl+Up/Down arrow to move cursor to beginning
of previous/next paragraph. If within a paragraph cursor moves to
beginning of that paragraph.
2001-09-12 Jakub Steiner <jimmac@ximian.com>
* gtk/stock-icons/dialog_question.png: replacing the shaky
......
2001-09-12 Padraig O'Briain <padraig.obriain@sun.com>
* gtk/gtktextview.c
Add support for Ctrl+Up/Down arrow to move cursor to beginning
of previous/next paragraph. If within a paragraph cursor moves to
beginning of that paragraph.
2001-09-12 Jakub Steiner <jimmac@ximian.com>
* gtk/stock-icons/dialog_question.png: replacing the shaky
......
2001-09-12 Padraig O'Briain <padraig.obriain@sun.com>
* gtk/gtktextview.c
Add support for Ctrl+Up/Down arrow to move cursor to beginning
of previous/next paragraph. If within a paragraph cursor moves to
beginning of that paragraph.
2001-09-12 Jakub Steiner <jimmac@ximian.com>
* gtk/stock-icons/dialog_question.png: replacing the shaky
......
......@@ -763,6 +763,18 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
add_move_binding (binding_set, GDK_n, GDK_CONTROL_MASK,
GTK_MOVEMENT_DISPLAY_LINES, 1);
add_move_binding (binding_set, GDK_Up, GDK_CONTROL_MASK,
GTK_MOVEMENT_PARAGRAPHS, -1);
add_move_binding (binding_set, GDK_KP_Up, GDK_CONTROL_MASK,
GTK_MOVEMENT_PARAGRAPHS, -1);
add_move_binding (binding_set, GDK_Down, GDK_CONTROL_MASK,
GTK_MOVEMENT_PARAGRAPHS, 1);
add_move_binding (binding_set, GDK_KP_Down, GDK_CONTROL_MASK,
GTK_MOVEMENT_PARAGRAPHS, 1);
add_move_binding (binding_set, GDK_a, GDK_CONTROL_MASK,
GTK_MOVEMENT_PARAGRAPH_ENDS, -1);
......@@ -3914,9 +3926,8 @@ gtk_text_view_move_cursor (GtkTextView *text_view,
break;
case GTK_MOVEMENT_PARAGRAPHS:
/* This should almost certainly instead be doing the parallel thing to WORD */
/* gtk_text_iter_down_lines (&newplace, count); */
/* FIXME */
gtk_text_iter_forward_lines (&newplace, count);
gtk_text_iter_set_line_offset (&newplace, 0);
break;
case GTK_MOVEMENT_PARAGRAPH_ENDS:
......
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