talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit ab2c7af982009ebe331b1247654193011ea837a2
parent 0816935a36966455f7f8a5298a0b8e2604c656af
Author: Colin Leroy <colin@colino.net>
Date:   Wed, 14 May 2014 15:55:42 +0200

Don't go up in subject if we're selecting

Diffstat:
Msrc/compose.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/compose.c b/src/compose.c @@ -11020,7 +11020,8 @@ static gboolean completion_set_focus_to_subject // Up key should also move the focus to subject field, if the cursor // is on the first line. - if (event->keyval == GDK_KEY_Up || event->keyval == GDK_KEY_KP_Up) { + if ((event->keyval == GDK_KEY_Up || event->keyval == GDK_KEY_KP_Up) + && (event->state & (GDK_SHIFT_MASK|GDK_CONTROL_MASK)) == 0) { buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(widget)); g_return_val_if_fail(buffer != NULL, FALSE);