[evolution/webkit-composer] Bug 708762 - Tab should write tab, not change focus widget



commit 4c777b6998d6b02ded84b6cb4633601aa5c55af5
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Oct 11 13:22:18 2013 +0200

    Bug 708762 - Tab should write tab, not change focus widget

 e-util/e-editor-widget.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-editor-widget.c b/e-util/e-editor-widget.c
index f458b88..259728e 100644
--- a/e-util/e-editor-widget.c
+++ b/e-util/e-editor-widget.c
@@ -1000,6 +1000,12 @@ editor_widget_key_press_event (GtkWidget *widget,
 {
        EEditorWidget *editor = E_EDITOR_WIDGET (widget);
 
+       if (event->keyval == GDK_KEY_Tab)
+               return e_editor_widget_exec_command (
+                       editor,
+                       E_EDITOR_WIDGET_COMMAND_INSERT_TEXT,
+                       "\t");
+
        if ((event->keyval == GDK_KEY_Control_L) ||
            (event->keyval == GDK_KEY_Control_R)) {
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]