[fix] place the cursor at the end of the password on retry

This commit is contained in:
dijunkun
2026-09-22 10:39:27 +08:00
parent 7e3e050edf
commit 2235d5cb62
+8 -1
View File
@@ -1325,7 +1325,14 @@ export component MainWindow inherits Window {
Timer {
interval: 1ms;
running: true;
triggered => { connection-password-editor.focus(); }
triggered => {
self.running = false;
connection-password-editor.focus();
// Collapse the selection at the end of the restored
// password, including text with multi-byte characters.
connection-password-editor.select-all();
connection-password-editor.clear-selection();
}
}
}