focus and select text on clicking edit button

This commit is contained in:
Jedi18 2021-01-30 14:08:02 +05:30
parent e09e587796
commit 0ebb2947ef

View file

@ -65,6 +65,8 @@ ApplicationWindow {
displayUsername.isUsernameEditingAllowed = false displayUsername.isUsernameEditingAllowed = false
} else { } else {
displayUsername.isUsernameEditingAllowed = true displayUsername.isUsernameEditingAllowed = true
displayUsername.focus = true
displayUsername.selectAll()
} }
} }
} }