Skip to content

Commit

Permalink
VPN-4653: Use name of app, instead of the path, as Accessible.name in…
Browse files Browse the repository at this point in the history
… app exclusions list
  • Loading branch information
lesleyjanenorton committed Apr 9, 2024
1 parent 0a0ffb6 commit 92da495
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions src/ui/screens/settings/appPermissions/AppPermissionsList.qml
Original file line number Diff line number Diff line change
Expand Up @@ -190,41 +190,6 @@ ColumnLayout {
checkBoxActiveFocusOnTab: false
Layout.alignment: Qt.AlignVCenter
Accessible.name: appName
focus: true

// Change list selection on focus change
onActiveFocusChanged: {
if (activeFocus) {
listView.currentIndex = index;
};
}

function handleTabPressed() {
if (listView.currentIndex < (listView.count - 1)) {
// Move selection & focus to next item
listView.incrementCurrentIndex();
listView.currentItem.forceActiveFocus(Qt.TabFocusReason);
}
else {
// Currently at end of list. Move focus to footer
listView.footerItem.forceActiveFocus(Qt.TabFocusReason);
}
}

function handleBacktabPressed() {
if (listView.currentIndex > 0) {
// Move selection & focus to previous item
listView.decrementCurrentIndex();
listView.currentItem.forceActiveFocus(Qt.BacktabFocusReason);
}
else {
// Currently at top of list. Move focus to header
listView.headerItem.forceActiveFocus(Qt.BacktabFocusReason);
}
}

Keys.onTabPressed: handleTabPressed()
Keys.onBacktabPressed: handleBacktabPressed()
}

Rectangle {
Expand Down

0 comments on commit 92da495

Please sign in to comment.