New folder dialog editor supports the enter shortcut
This commit is contained in:
parent
ce2a66656f
commit
8dc6426b7e
2 changed files with 5 additions and 1 deletions
|
@ -38,6 +38,11 @@ Window {
|
|||
text: qsTr("New folder")
|
||||
focus: true
|
||||
|
||||
onAccepted: {
|
||||
main.newFolder(_textField.text)
|
||||
control.close()
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
_textField.selectAll()
|
||||
}
|
||||
|
|
|
@ -42,7 +42,6 @@ Item {
|
|||
id: dirModel
|
||||
viewAdapter: viewAdapter
|
||||
|
||||
|
||||
Component.onCompleted: {
|
||||
if (arg)
|
||||
dirModel.url = arg
|
||||
|
|
Loading…
Reference in a new issue