summary refs log tree commit diff
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
parentshifted isUsernameEditingAllowed to qml from c++ (diff)
downloadnheko-0ebb2947ef8010a2226237d65fb36fe847e8c5b2.tar.xz
focus and select text on clicking edit button
-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() } } }