Desktop: When the focus is lost, the rename will also be cancelled

pull/2/head
cutefishd 5 years ago
parent ab343fb176
commit 4f57fa63b8

@ -105,8 +105,10 @@ Item {
delegate: FolderGridItem {}
onActiveFocusChanged: {
if (!activeFocus)
if (!activeFocus) {
_folderView.cancelRename()
dirModel.clearSelection()
}
}
Component.onCompleted: {

@ -214,6 +214,10 @@ GridView {
currentIndex: -1
ScrollBar.vertical: ScrollBar { }
FishUI.WheelHandler {
target: control
}
onPressXChanged: {
cPress = mapToItem(control.contentItem, pressX, pressY)
}

@ -37,6 +37,11 @@ ListView {
clip: true
ScrollBar.vertical: ScrollBar { }
boundsBehavior: Flickable.StopAtBounds
FishUI.WheelHandler {
target: control
}
function rename() {
if (currentIndex !== -1) {

Loading…
Cancel
Save