summary refs log tree commit diff
path: root/resources/qml
diff options
context:
space:
mode:
authorJedi18 <targetakhil@gmail.com>2021-01-30 14:08:02 +0530
committerJedi18 <targetakhil@gmail.com>2021-01-30 14:08:02 +0530
commit0ebb2947ef8010a2226237d65fb36fe847e8c5b2 (patch)
tree13c6d101af0e4ea29cae53c31bfb7a021fd1ac79 /resources/qml
parentshifted isUsernameEditingAllowed to qml from c++ (diff)
downloadnheko-0ebb2947ef8010a2226237d65fb36fe847e8c5b2.tar.xz
focus and select text on clicking edit button
Diffstat (limited to 'resources/qml')
-rw-r--r--resources/qml/UserProfile.qml2
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()
                     }
                 }
             }