Skip to content

a11y: Port from deprecated atk_focus_tracker_notify

Port gail_focus_notify from using the deprecated atk_focus_tracker_notify to notify about the new focus object. Notify of a state of the focused state instead, as suggested in the atk_focus_tracker_notify doc.

Using the deprecated function e.g. resulted in the Orca screen reader no longer announcing initial focus on editable comboboxes in LibreOffice Writer's toolbars after Orca dropped support for the deprecated "focus" AT-SPI event in this commit:

commit 9e2902dd46c7e583a097e235dfd7e3c50b016383
Author: Joanmarie Diggs <jdiggs@igalia.com>
Date:   Wed May 1 12:14:07 2024 +0200

    Remove the on_focus handler for the LibreOffice script

    The "focus:" event was deprecated many years ago. If the expected
    "object:state-changed:focused" event is absent, that bug should
    be fixed.

This commit makes the announcement work again.

It also fixes the scenario described in #454 (comment 2099344) .

Fixes: #454 (closed)

Edited by Michael Weghorn

Merge request reports

Loading