[gedit/gnome-2-28] Grab focus on the view when activating a snippet
- From: Paolo Borelli <pborelli src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gedit/gnome-2-28] Grab focus on the view when activating a snippet
- Date: Sat, 19 Dec 2009 11:49:51 +0000 (UTC)
commit 31f38849d431a32d4e001ca4a84c0021997afab7
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 93db207..28225c2 100644
--- a/plugins/snippets/snippets/Document.py
+++ b/plugins/snippets/snippets/Document.py
@@ -510,8 +510,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]