From 92da495b7a04c9270e93ddc78e96328c4a56ef99 Mon Sep 17 00:00:00 2001 From: Lesley Norton Date: Wed, 3 Apr 2024 17:16:25 -0500 Subject: [PATCH] VPN-4653: Use name of app, instead of the path, as Accessible.name in app exclusions list --- .../appPermissions/AppPermissionsList.qml | 35 ------------------- 1 file changed, 35 deletions(-) diff --git a/src/ui/screens/settings/appPermissions/AppPermissionsList.qml b/src/ui/screens/settings/appPermissions/AppPermissionsList.qml index e2627fdac0..a3ff23ba0c 100644 --- a/src/ui/screens/settings/appPermissions/AppPermissionsList.qml +++ b/src/ui/screens/settings/appPermissions/AppPermissionsList.qml @@ -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 {