diff options
author | Jedi18 <targetakhil@gmail.com> | 2021-01-30 14:08:02 +0530 |
---|---|---|
committer | Jedi18 <targetakhil@gmail.com> | 2021-01-30 14:08:02 +0530 |
commit | 0ebb2947ef8010a2226237d65fb36fe847e8c5b2 (patch) | |
tree | 13c6d101af0e4ea29cae53c31bfb7a021fd1ac79 /resources/qml | |
parent | shifted isUsernameEditingAllowed to qml from c++ (diff) | |
download | nheko-0ebb2947ef8010a2226237d65fb36fe847e8c5b2.tar.xz |
focus and select text on clicking edit button
Diffstat (limited to 'resources/qml')
-rw-r--r-- | resources/qml/UserProfile.qml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/resources/qml/UserProfile.qml b/resources/qml/UserProfile.qml index 4442c97d..26dfc48c 100644 --- a/resources/qml/UserProfile.qml +++ b/resources/qml/UserProfile.qml @@ -65,6 +65,8 @@ ApplicationWindow { displayUsername.isUsernameEditingAllowed = false } else { displayUsername.isUsernameEditingAllowed = true + displayUsername.focus = true + displayUsername.selectAll() } } } |