Changeset View
Changeset View
Standalone View
Standalone View
containments/desktop/package/contents/ui/FolderView.qml
Show First 20 Lines • Show All 856 Lines • ▼ Show 20 Line(s) | 856 | } else { | |||
---|---|---|---|---|---|
857 | dir.runSelected(); | 857 | dir.runSelected(); | ||
858 | } | 858 | } | ||
859 | } | 859 | } | ||
860 | } | 860 | } | ||
861 | 861 | | |||
862 | Behavior on contentX { id: smoothX; enabled: false; SmoothedAnimation { velocity: 700 } } | 862 | Behavior on contentX { id: smoothX; enabled: false; SmoothedAnimation { velocity: 700 } } | ||
863 | Behavior on contentY { id: smoothY; enabled: false; SmoothedAnimation { velocity: 700 } } | 863 | Behavior on contentY { id: smoothY; enabled: false; SmoothedAnimation { velocity: 700 } } | ||
864 | 864 | | |||
865 | Keys.onReturnPressed: runOrCdSelected() | 865 | Keys.onReturnPressed: { | ||
866 | Keys.onEnterPressed: runOrCdSelected() | 866 | if (event.modifiers === Qt.AltModifier) { | ||
867 | dir.openPropertiesDialog(); | ||||
868 | } else { | ||||
869 | runOrCdSelected(); | ||||
870 | } | ||||
871 | } | ||||
872 | Keys.onEnterPressed: Keys.returnPressed(event) | ||||
867 | 873 | | |||
868 | Keys.onMenuPressed: { | 874 | Keys.onMenuPressed: { | ||
869 | if (currentIndex != -1 && dir.hasSelection() && currentItem) { | 875 | if (currentIndex != -1 && dir.hasSelection() && currentItem) { | ||
870 | dir.setSelected(positioner.map(currentIndex)); | 876 | dir.setSelected(positioner.map(currentIndex)); | ||
871 | dir.openContextMenu(currentItem.frame); | 877 | dir.openContextMenu(currentItem.frame); | ||
872 | } else { | 878 | } else { | ||
873 | // Otherwise let the containment handle it. | 879 | // Otherwise let the containment handle it. | ||
874 | event.accepted = false; | 880 | event.accepted = false; | ||
▲ Show 20 Lines • Show All 467 Lines • Show Last 20 Lines |