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")
|
text: qsTr("New folder")
|
||||||
focus: true
|
focus: true
|
||||||
|
|
||||||
|
onAccepted: {
|
||||||
|
main.newFolder(_textField.text)
|
||||||
|
control.close()
|
||||||
|
}
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
_textField.selectAll()
|
_textField.selectAll()
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,6 @@ Item {
|
||||||
id: dirModel
|
id: dirModel
|
||||||
viewAdapter: viewAdapter
|
viewAdapter: viewAdapter
|
||||||
|
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
if (arg)
|
if (arg)
|
||||||
dirModel.url = arg
|
dirModel.url = arg
|
||||||
|
|
Loading…
Reference in a new issue