summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-04-30 13:06:15 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2024-04-30 17:36:44 +0200
commit4cec279cf2bf55d33e0eb6c92348aa883d7593ff (patch)
tree56b89b6cdd7891f0f7ab352be222d56cc5bd3d0f /shell
parenttdf#160838 qt: Update IM cursor position also on modifier change (diff)
downloadcore-4cec279cf2bf55d33e0eb6c92348aa883d7593ff.tar.gz
core-4cec279cf2bf55d33e0eb6c92348aa883d7593ff.zip
gtk4 a11y: Handle accessible relations
When creating a new LoAccessible, also consider accessible relations. These can be retrieved via the XAccessibleRelationSet UNO interface. Bridge those that have an equivalent in the GTK 4 a11y API. As the parent GtkAccessible of a target XAccessible is not known, extend `GtkAccessibleRegistry::getLOAccessible` with the functionality to find a parent via the XAccessible hierarchy (i.e. by walking up the XAccessible hierarchy until a parent is reached that has an entry in registry already). This could potentially be problematic as an a11y hierarchy solely based on the XAccessible hierarchy doesn't necessarily match the one with the GtkAccessibles from the native GtkWidget hierarchy. In my current understanding, this should presumably be OK as long as that mechanism finds one existing entry before getting to the root, so assert that this is the case. With this in place, having a Writer doc with multiple paragraphs, there is a flows_to relation shown for the first paragraph to the second in Accerciser, etc., and jumping to the target selects the next paragraph as expected. Change-Id: I2ec1fe8c48dd4250d407ae4fb3c8d9c0f6671646 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166926 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'shell')
0 files changed, 0 insertions, 0 deletions