Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit eca3cb1f authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Folder View] Also handle Enter key (on numpad) to run files and cd into folders

Differential Revision: https://phabricator.kde.org/D7632
parent 3aed6546
......@@ -841,10 +841,7 @@ Item {
gridView.cachedRectangleSelection = indices;
}
Behavior on contentX { id: smoothX; enabled: false; SmoothedAnimation { velocity: 700 } }
Behavior on contentY { id: smoothY; enabled: false; SmoothedAnimation { velocity: 700 } }
Keys.onReturnPressed: {
function runOrCdSelected() {
if (currentIndex != -1 && dir.hasSelection()) {
if (root.useListViewMode && currentItem.isDir) {
doCd(positioner.map(currentIndex));
......@@ -854,6 +851,12 @@ Item {
}
}
Behavior on contentX { id: smoothX; enabled: false; SmoothedAnimation { velocity: 700 } }
Behavior on contentY { id: smoothY; enabled: false; SmoothedAnimation { velocity: 700 } }
Keys.onReturnPressed: runOrCdSelected()
Keys.onEnterPressed: runOrCdSelected()
Keys.onMenuPressed: {
if (currentIndex != -1 && dir.hasSelection() && currentItem) {
dir.setSelected(positioner.map(currentIndex));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment