X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-recpt-editor.c;h=6f4d1a15d723c8858b08e425ed7649726d9963a9;hp=150153c43eb125c0722786bff0ecf16f5f2c1064;hb=850bcc46fdd95e24bd1d6867d067155f5c518881;hpb=864c085607658b16daf578e94e63916e9832af83 diff --git a/src/widgets/modest-recpt-editor.c b/src/widgets/modest-recpt-editor.c index 150153c..6f4d1a1 100644 --- a/src/widgets/modest-recpt-editor.c +++ b/src/widgets/modest-recpt-editor.c @@ -636,7 +636,10 @@ modest_recpt_editor_on_key_press_event (GtkTextView *text_view, return TRUE; } #else - /* TODO: Alternative code. */ + if (gtk_text_buffer_get_selection_bounds (buffer, NULL, NULL)) { + gtk_text_buffer_delete_selection (buffer, TRUE, TRUE); + return TRUE; + } #endif tag = prev_iter_has_recipient (&location);