Bugzilla – Attachment 90662 Details for
Bug 72639
ACCESSIBILITY: Recent documents in the new start center don't send the proper a11y events
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
accessible-event listener
listener.py (text/x-python), 516 bytes, created by
Jacobo Aragunde Pérez
on 2013-12-12 12:10:27 UTC
(
hide
)
Description:
accessible-event listener
Filename:
MIME Type:
Creator:
Jacobo Aragunde Pérez
Created:
2013-12-12 12:10:27 UTC
Size:
516 bytes
patch
obsolete
>#!/usr/bin/python > >import pyatspi > >def onEvent(e): > try: > if e.host_application.name != "soffice": > return > except: > return > > state = e.source.getState() > hasManagesDescendants = state.contains(pyatspi.STATE_MANAGES_DESCENDANTS) > print("e.source %s, e.type: %s, manages descendants?: %s" % (e.source, e.type, bool(hasManagesDescendants))) > >pyatspi.Registry.registerEventListener(onEvent, "object:selection-changed","object:active-descendant-changed") >pyatspi.Registry.start()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 72639
: 90662