Making sure editor gets focus
authorEd Page <eopage@byu.net>
Wed, 24 Nov 2010 03:50:00 +0000 (21:50 -0600)
committerEd Page <eopage@byu.net>
Wed, 24 Nov 2010 03:50:00 +0000 (21:50 -0600)
src/dialogs.py

index 8dea47d..82d620f 100644 (file)
@@ -270,6 +270,7 @@ class SMSEntryWindow(object):
                        self._scroll_to_bottom()
                        self._window.setWindowTitle(title)
                        self._window.show()
+                       self._smsEntry.setFocus(QtCore.Qt.OtherFocusReason)
                else:
                        self._targetList.setVisible(True)
                        while self._targetLayout.count():
@@ -306,6 +307,7 @@ class SMSEntryWindow(object):
                        self._scroll_to_bottom()
                        self._window.setWindowTitle("Contacts")
                        self._window.show()
+                       self._smsEntry.setFocus(QtCore.Qt.OtherFocusReason)
 
        def _populate_number_selector(self, selector, cid, numbers):
                while 0 < selector.count():