diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2008-11-03 12:14:33 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2008-11-03 12:14:33 +0800 |
commit | 2f84127ab607dd8ae1ddcf52fa8bbec8a11d165c (patch) | |
tree | 2c5362da57e4feb2110c1312470a26b2db89dd96 /composer/e-msg-composer.c | |
parent | baed5dec32beeadf755119c83afd57b5dc2e5efe (diff) | |
download | gsoc2013-evolution-2f84127ab607dd8ae1ddcf52fa8bbec8a11d165c.tar.gz gsoc2013-evolution-2f84127ab607dd8ae1ddcf52fa8bbec8a11d165c.tar.zst gsoc2013-evolution-2f84127ab607dd8ae1ddcf52fa8bbec8a11d165c.zip |
** Fixes bug #559028
2008-11-02 Matthew Barnes <mbarnes@redhat.com>
** Fixes bug #559028
* composer/e-msg-composer.c (msg_composer_key_press_event):
Skip over the style toolbar when tabbing in reverse.
svn path=/trunk/; revision=36720
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r-- | composer/e-msg-composer.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 6c3fada7f3..b54333d192 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -2297,6 +2297,11 @@ msg_composer_key_press_event (GtkWidget *widget, { EMsgComposer *composer = E_MSG_COMPOSER (widget); GtkWidget *input_widget; + GtkhtmlEditor *editor; + GtkHTML *html; + + editor = GTKHTML_EDITOR (widget); + html = gtkhtml_editor_get_html (editor); input_widget = e_composer_header_table_get_header ( @@ -2316,8 +2321,13 @@ msg_composer_key_press_event (GtkWidget *widget, } if (event->keyval == GDK_Tab && gtk_widget_is_focus (input_widget)) { - gtkhtml_editor_run_command ( - GTKHTML_EDITOR (composer), "grab-focus"); + gtkhtml_editor_run_command (editor, "grab-focus"); + return TRUE; + } + + if (event->keyval == GDK_ISO_Left_Tab && + gtk_widget_is_focus (GTK_WIDGET (html))) { + gtk_widget_grab_focus (input_widget); return TRUE; } |