mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-10-15 00:09:39 +08:00
[fix] place the cursor at the end of the password on retry
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user