aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2008-11-03 12:14:33 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2008-11-03 12:14:33 +0800
commit2f84127ab607dd8ae1ddcf52fa8bbec8a11d165c (patch)
tree2c5362da57e4feb2110c1312470a26b2db89dd96
parentbaed5dec32beeadf755119c83afd57b5dc2e5efe (diff)
downloadgsoc2013-evolution-2f84127ab607dd8ae1ddcf52fa8bbec8a11d165c.tar
gsoc2013-evolution-2f84127ab607dd8ae1ddcf52fa8bbec8a11d165c.tar.gz
gsoc2013-evolution-2f84127ab607dd8ae1ddcf52fa8bbec8a11d165c.tar.bz2
gsoc2013-evolution-2f84127ab607dd8ae1ddcf52fa8bbec8a11d165c.tar.lz
gsoc2013-evolution-2f84127ab607dd8ae1ddcf52fa8bbec8a11d165c.tar.xz
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
-rw-r--r--composer/ChangeLog7
-rw-r--r--composer/e-msg-composer.c14
2 files changed, 19 insertions, 2 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index 23349f6d98..aa88a29e94 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,10 @@
+2008-11-02 Matthew Barnes <mbarnes@redhat.com>
+
+ ** Fixes bug #559028
+
+ * e-msg-composer.c (msg_composer_key_press_event):
+ Skip over the style toolbar when tabbing in reverse.
+
2008-10-29 Sankar P <psankar@novell.com>
License Changes
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;
}