diff options
author | Volker Krause <[email protected]> | 2024-10-26 16:53:50 +0200 |
---|---|---|
committer | Volker Krause <[email protected]> | 2024-10-27 16:57:47 +0100 |
commit | 585811677002a395b882379d1d7ce20d335888e0 (patch) | |
tree | 0c5dbfd13ae0f8c69e1c0752e6c2c6a51f396f8c /src/quick/items/qquickaccessibleattached.cpp | |
parent | 49fbf2f86afa62b8c1c2be330620a0b310584a34 (diff) |
Fix double-triggering of actions via the accessibility interface
7bdeea2c309150 introduced proxying for actions, for a11y interactions
however this now results in double-triggering, ie. the action triggers
on the a11y press action, and the outside item triggers its action in
that case.
Instead, only pass the a11y action to the item if its proxyed action
didn't handle it yet.
Pick-to: 6.8
Change-Id: I81af95dac0e5663def2afae700f49c50cb34f9b9
Reviewed-by: Fabian Kosmale <[email protected]>
Diffstat (limited to 'src/quick/items/qquickaccessibleattached.cpp')
-rw-r--r-- | src/quick/items/qquickaccessibleattached.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/quick/items/qquickaccessibleattached.cpp b/src/quick/items/qquickaccessibleattached.cpp index 7446534a44..551187d87a 100644 --- a/src/quick/items/qquickaccessibleattached.cpp +++ b/src/quick/items/qquickaccessibleattached.cpp @@ -476,7 +476,8 @@ bool QQuickAccessibleAttached::doAction(const QString &actionName) bool ret = false; if (m_proxying) ret = sig->invoke(m_proxying); - ret |= sig->invoke(this); + if (!ret) + ret = sig->invoke(this); return ret; } return false; |