diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-01-04 20:01:09 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-01-04 20:01:09 +0000 |
commit | 3daf38ec350b4e25244c69eea165b18afd090459 (patch) | |
tree | 5489bd5abdccd746fe68e98b9164e887bfbcfde4 /kde-frameworks/kirigami/files | |
parent | 84bfe2244c544bae8dcaffbaf4cfb80f59f88f64 (diff) |
gentoo auto-resync : 04:01:2024 - 20:01:09
Diffstat (limited to 'kde-frameworks/kirigami/files')
-rw-r--r-- | kde-frameworks/kirigami/files/kirigami-5.113.0-drawer-actions-accessible.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/kde-frameworks/kirigami/files/kirigami-5.113.0-drawer-actions-accessible.patch b/kde-frameworks/kirigami/files/kirigami-5.113.0-drawer-actions-accessible.patch new file mode 100644 index 000000000000..1a7dd0b98807 --- /dev/null +++ b/kde-frameworks/kirigami/files/kirigami-5.113.0-drawer-actions-accessible.patch @@ -0,0 +1,38 @@ +From 31f8fbc0d1c55e0d4af02be309aae5cef29055e7 Mon Sep 17 00:00:00 2001 +From: Volker Krause <vkrause@kde.org> +Date: Mon, 14 Aug 2023 17:38:20 +0200 +Subject: [PATCH] Make drawer actions accessible + +They could previously not be triggered at all, and had no label in +the global drawer. +--- + src/controls/private/ContextDrawerActionItem.qml | 2 ++ + src/controls/private/GlobalDrawerActionItem.qml | 3 +++ + 2 files changed, 5 insertions(+) + +diff --git a/src/controls/private/ContextDrawerActionItem.qml b/src/controls/private/ContextDrawerActionItem.qml +index 430ff87e6..f5b2ca5c7 100644 +--- a/src/controls/private/ContextDrawerActionItem.qml ++++ b/src/controls/private/ContextDrawerActionItem.qml +@@ -95,4 +95,6 @@ Kirigami.BasicListItem { + console.warning("Don't know how to trigger the action") + } + } ++ ++ Accessible.onPressAction: listItem.clicked() + } +diff --git a/src/controls/private/GlobalDrawerActionItem.qml b/src/controls/private/GlobalDrawerActionItem.qml +index 07e63fa38..6d3c5fe35 100644 +--- a/src/controls/private/GlobalDrawerActionItem.qml ++++ b/src/controls/private/GlobalDrawerActionItem.qml +@@ -177,4 +177,7 @@ Kirigami.AbstractListItem { + + Keys.onDownPressed: event => nextItemInFocusChain().focus = true + Keys.onUpPressed: event => nextItemInFocusChain(false).focus = true ++ ++ Accessible.onPressAction: listItem.clicked() ++ Accessible.name: modelData.text + } +-- +GitLab + |