Quick GUI: Focus text fields in dialogs

This commit is contained in:
Martchus 2018-09-10 19:53:54 +02:00
parent f86fcefc03
commit b12b7a7b24
2 changed files with 2 additions and 0 deletions

View File

@ -108,6 +108,7 @@ Kirigami.ScrollablePage {
this.entryDesc = entryType + entryName this.entryDesc = entryType + entryName
this.newEntryName = entryName this.newEntryName = entryName
} }
entryNameTextField.forceActiveFocus()
this.open() this.open()
} }
} }

View File

@ -74,6 +74,7 @@ BasicDialog {
this.instruction = instruction this.instruction = instruction
clear() clear()
open() open()
passwordTextField.forceActiveFocus()
} }
function askForExistingPassword(instruction) { function askForExistingPassword(instruction) {