Fix ctrl and shift selection

This commit is contained in:
reven 2021-04-14 23:40:22 +08:00
parent c061788e9c
commit 229a174622
4 changed files with 7 additions and 3 deletions

View file

@ -417,6 +417,8 @@ GridView {
//
if (pressedItem != null &&
!control.rubberBand &&
!control.shiftPressed &&
!control.ctrlPressed &&
!dirModel.dragging) {
dirModel.clearSelection()
dirModel.setSelected(pressedItem.index)

View file

@ -322,6 +322,8 @@ ListView {
onReleased: {
if (pressedItem != null &&
!control.rubberBand &&
!control.shiftPressed &&
!control.ctrlPressed &&
!dirModel.dragging) {
dirModel.clearSelection()
dirModel.setSelected(pressedItem.index)

View file

@ -8,7 +8,7 @@ Settings {
property int height: 580
property int desktopIconSize: 72
property int maximumIconSize: 256
property int minimumIconSize: 72
property int minimumIconSize: 64
property int gridIconSize: 72
property int gridIconSize: 64
}

View file

@ -85,7 +85,7 @@ FishUI.Window {
SideBar {
id: _sideBar
Layout.fillHeight: true
width: 200 + FishUI.Units.largeSpacing
width: 180 + FishUI.Units.largeSpacing
onClicked: _folderPage.openUrl(path)
}