[gedit] Grab focus on the view when activating a snippet
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gedit] Grab focus on the view when activating a snippet
- Date: Sun, 11 Oct 2009 00:27:30 +0000 (UTC)
commit b93b05650959afc3099d2be70f9b4eba774e83df
Author: Jesse van den Kieboom <jesse icecrew nl>
Date: Sun Oct 11 02:25:34 2009 +0200
Grab focus on the view when activating a snippet
plugins/snippets/snippets/Document.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/snippets/snippets/Document.py b/plugins/snippets/snippets/Document.py
index 21e45c7..eb73b23 100644
--- a/plugins/snippets/snippets/Document.py
+++ b/plugins/snippets/snippets/Document.py
@@ -542,8 +542,9 @@ class Document:
buf.place_cursor(sn.begin_iter())
else:
self.goto_placeholder(self.active_placeholder, sn.placeholders[keys[0]])
-
+
buf.end_user_action()
+ self.view.grab_focus()
return True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]