@ -21,7 +21,6 @@ ColumnLayout {
Keys.onPressed: {
Keys.onPressed: {
if ( event . key === Qt . Key_Escape ) {
if ( event . key === Qt . Key_Escape ) {
stack . pop ( )
stack . pop ( )
done ( ) ;
event . accepted = true ;
event . accepted = true ;
}
}
}
}
@ -38,8 +37,8 @@ ColumnLayout {
}
}
function done ( ) {
function done ( ) {
stack . initialItem . view . currentIndex = 0 ;
/ / T h e m o d i f i e d i t e m w i l l b e p u s h e d t o t h e t o p , a n d w e w o u l d l i k e t o h i g h l i g h t t h e r e a l f i r s t i t e m
stack . initialItem . view . currentItem . forceActiveFocus ( ) ;
Qt . callLater ( ( ) = > { stack . initialItem . view . currentIndex = 0 ; } ) ;
}
}
PlasmaComponents3 . ScrollView {
PlasmaComponents3 . ScrollView {
@ -79,7 +78,7 @@ ColumnLayout {
PlasmaComponents3 . Button {
PlasmaComponents3 . Button {
text: i18nc ( "@action:button" , "Cancel" )
text: i18nc ( "@action:button" , "Cancel" )
icon.name: "dialog-cancel"
icon.name: "dialog-cancel"
onClicked: { stack . pop ( ) ; done ( ) }
onClicked: stack . pop ( )
}
}
}
}
}
}