Plugins/VcsPlugins/vcsMercurial/HgClientPromptDialog.py

changeset 4475
dde2aa51ac0b
parent 4471
2dedc0c4a8fa
child 4631
5c1a96925da4
equal deleted inserted replaced
4474:d823ad9e714d 4475:dde2aa51ac0b
7 Module implementing a prompt dialog for the Mercurial command server. 7 Module implementing a prompt dialog for the Mercurial command server.
8 """ 8 """
9 9
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11 11
12 from PyQt5.QtCore import pyqtSlot 12 from PyQt5.QtCore import pyqtSlot, Qt
13 from PyQt5.QtGui import QTextCursor 13 from PyQt5.QtGui import QTextCursor
14 from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QLineEdit 14 from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QLineEdit
15 15
16 from .Ui_HgClientPromptDialog import Ui_HgClientPromptDialog 16 from .Ui_HgClientPromptDialog import Ui_HgClientPromptDialog
17 17
38 38
39 tc = self.messageEdit.textCursor() 39 tc = self.messageEdit.textCursor()
40 tc.movePosition(QTextCursor.End) 40 tc.movePosition(QTextCursor.End)
41 self.messageEdit.setTextCursor(tc) 41 self.messageEdit.setTextCursor(tc)
42 self.messageEdit.ensureCursorVisible() 42 self.messageEdit.ensureCursorVisible()
43
44 self.inputEdit.setFocus(Qt.OtherFocusReason)
43 45
44 @pyqtSlot(str) 46 @pyqtSlot(str)
45 def on_inputEdit_textChanged(self, txt): 47 def on_inputEdit_textChanged(self, txt):
46 """ 48 """
47 Private slot to handle changes of the user input. 49 Private slot to handle changes of the user input.

eric ide

mercurial