From fcfe102b0c0340918e013b7f3cb39fb5560a4fef Mon Sep 17 00:00:00 2001 From: Raghavendran Date: Thu, 25 Jan 2007 16:04:19 +0000 Subject: **Fixes bug #343943 Added code for tab sequence to go from BCC into Body. 2007-01-25 Raghavendran **Fixes bug #343943 * e-msg-composer.c:Added code for tab sequence to go from BCC into Body. svn path=/trunk/; revision=33149 --- composer/e-msg-composer.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'composer/e-msg-composer.c') diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 2a83924d95..0f37ffdaf2 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -3511,12 +3511,19 @@ msg_composer_destroy_notify (void *data) static int composer_key_pressed (EMsgComposer *composer, GdkEventKey *event, void *user_data) { + GtkWidget *widget; + EMsgComposerPrivate *p = composer->priv; + widget = e_msg_composer_hdrs_get_subject_entry (E_MSG_COMPOSER_HDRS (p->hdrs)); if (event->keyval == GDK_Escape) { do_exit (composer); g_signal_stop_emission_by_name (composer, "key-press-event"); return TRUE; + } else if ((event->keyval == GDK_Tab) && (gtk_widget_is_focus(widget))) { + CORBA_Environment ev; + CORBA_exception_init (&ev); + GNOME_GtkHTML_Editor_Engine_runCommand (p->eeditor_engine, "grab-focus", &ev); + CORBA_exception_free (&ev); } - return FALSE; } -- cgit