Fix ctrl and shift selection
This commit is contained in:
parent
c061788e9c
commit
229a174622
4 changed files with 7 additions and 3 deletions
|
@ -417,6 +417,8 @@ GridView {
|
||||||
// 当选择多个文件的时候,在这选择里的文件中点击
|
// 当选择多个文件的时候,在这选择里的文件中点击
|
||||||
if (pressedItem != null &&
|
if (pressedItem != null &&
|
||||||
!control.rubberBand &&
|
!control.rubberBand &&
|
||||||
|
!control.shiftPressed &&
|
||||||
|
!control.ctrlPressed &&
|
||||||
!dirModel.dragging) {
|
!dirModel.dragging) {
|
||||||
dirModel.clearSelection()
|
dirModel.clearSelection()
|
||||||
dirModel.setSelected(pressedItem.index)
|
dirModel.setSelected(pressedItem.index)
|
||||||
|
|
|
@ -322,6 +322,8 @@ ListView {
|
||||||
onReleased: {
|
onReleased: {
|
||||||
if (pressedItem != null &&
|
if (pressedItem != null &&
|
||||||
!control.rubberBand &&
|
!control.rubberBand &&
|
||||||
|
!control.shiftPressed &&
|
||||||
|
!control.ctrlPressed &&
|
||||||
!dirModel.dragging) {
|
!dirModel.dragging) {
|
||||||
dirModel.clearSelection()
|
dirModel.clearSelection()
|
||||||
dirModel.setSelected(pressedItem.index)
|
dirModel.setSelected(pressedItem.index)
|
||||||
|
|
|
@ -8,7 +8,7 @@ Settings {
|
||||||
property int height: 580
|
property int height: 580
|
||||||
property int desktopIconSize: 72
|
property int desktopIconSize: 72
|
||||||
property int maximumIconSize: 256
|
property int maximumIconSize: 256
|
||||||
property int minimumIconSize: 72
|
property int minimumIconSize: 64
|
||||||
|
|
||||||
property int gridIconSize: 72
|
property int gridIconSize: 64
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,7 +85,7 @@ FishUI.Window {
|
||||||
SideBar {
|
SideBar {
|
||||||
id: _sideBar
|
id: _sideBar
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
width: 200 + FishUI.Units.largeSpacing
|
width: 180 + FishUI.Units.largeSpacing
|
||||||
onClicked: _folderPage.openUrl(path)
|
onClicked: _folderPage.openUrl(path)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue