mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
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:
parent
330fad9d46
commit
539467d9ee
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue