[latexila] LatexMenu: grab focus to active view after inserting text



commit f524f3de89414a623ea8fe3d39fd4bcb1d8d1a42
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Wed Aug 16 08:21:39 2017 +0200

    LatexMenu: grab focus to active view after inserting text
    
    The text_buffer_insert() function is used by all GtkActions in
    LatexMenu. So for all actions, set the focus to the active GtkSourceView
    when the action is done, so that the user can type text again.

 src/latex_menu.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/latex_menu.vala b/src/latex_menu.vala
index 6f9108a..c45e137 100644
--- a/src/latex_menu.vala
+++ b/src/latex_menu.vala
@@ -537,6 +537,8 @@ public class LatexMenu : Gtk.ActionGroup
         }
 
         active_document.end_user_action ();
+
+        main_window.active_view.grab_focus ();
     }
 
     private string get_indentation ()


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