[latexila/gnome-3-24] LatexMenu: grab focus to active view after inserting text
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila/gnome-3-24] LatexMenu: grab focus to active view after inserting text
- Date: Sun, 20 Aug 2017 14:13:12 +0000 (UTC)
commit 155cde2458fa111045dcc54d8db641411478c89e
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 2a0b7b2..cc38df6 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]