Mercurial > libervia-web
diff src/browser/sat_browser/blog.py @ 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 | f8a7a046ff9c |
children | 2d15b484ca33 |
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