changeset 832:ded96b54ee02

browser (blog): set focus to the bubble of a just added comment entry
author souliane <souliane@mailoo.org>
date Sat, 09 Jan 2016 13:44:48 +0100
parents 25931797db20
children 4db064a70fc7
files src/browser/sat_browser/blog.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/browser/sat_browser/blog.py	Sat Jan 09 13:00:31 2016 +0100
+++ b/src/browser/sat_browser/blog.py	Sat Jan 09 13:44:48 2016 +0100
@@ -335,6 +335,7 @@
                 log.warning("Invalid service and node for comments, can't create a comment")
             self._current_comment = self.addEntry(editable=True, service=self.item.comments_service, node=self.item.comments_node, edit_entry=True)
         self.blog.setSelectedEntry(self._current_comment, True)
+        self._current_comment.bubble.setFocus(True)  # FIXME: should be done elsewhere (automatically)?
 
     def _changeMode(self, original_content, text):
         self.mode = C.ENTRY_MODE_RICH if self.mode == C.ENTRY_MODE_TEXT else C.ENTRY_MODE_TEXT