Set cursor at end of any existing text so that the user can directly continue with their comment

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
Roy Nieterau 2025-05-23 11:46:01 +02:00 committed by GitHub
parent 330fad9d46
commit 539467d9ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -862,6 +862,9 @@ class PublisherWindow(QtWidgets.QDialog):
self._comment_input.setStyleSheet("border-color: #DD2020")
# Set focus so user can start typing and is pointed towards the field
self._comment_input.setFocus()
self._comment_input.setCursorPosition(
len(self._comment_input.text())
)
def _on_comment_invalid_timeout(self):
# Reset style