From bd4aa89c2b41e8b14fb55f6d47834119177d97aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Mon, 24 Aug 2015 10:00:34 -0500 Subject: [PATCH] Added text_focus() in some actions to the tweet dialogue --- src/controller/messages.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/controller/messages.py b/src/controller/messages.py index 63a38ff2..fea63747 100644 --- a/src/controller/messages.py +++ b/src/controller/messages.py @@ -98,6 +98,7 @@ class basicTweet(object): checker = SpellChecker.spellchecker.spellChecker(text, "") if hasattr(checker, "fixed_text"): self.message.set_text(checker.fixed_text) + self.message.text_focus() def attach(self, *args, **kwargs): def completed_callback(): @@ -110,6 +111,7 @@ class basicTweet(object): output.speak(_(u"Unable to upload the audio")) dlg.cleanup() dlg = audioUploader.audioUploader(self.session.settings, completed_callback) + self.message.text_focus() class tweet(basicTweet): def __init__(self, session, title, caption, text, twishort_enabled, messageType="tweet", max=140): @@ -131,6 +133,7 @@ class tweet(basicTweet): self.image = self.message.get_image() if self.image != None: self.message.set("upload_image", _(u"Discard image")) + self.message.text_focus() def autocomplete_users(self, *args, **kwargs): c = autocompletionUsers.completion.autocompletionUsers(self.message, self.session.session_id)