Bugzilla – Attachment 118590 Details for
Bug 94113
Accessible focus event missing when caret moves to start of paragraph spanning two pages (see comment 11)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
accessible-event listener (paragraph.py)
paragraph.py (text/x-python), 1.04 KB, created by
Joanmarie Diggs
on 2015-09-10 22:15:36 UTC
(
hide
)
Description:
accessible-event listener (paragraph.py)
Filename:
MIME Type:
Creator:
Joanmarie Diggs
Created:
2015-09-10 22:15:36 UTC
Size:
1.04 KB
patch
obsolete
>#!/usr/bin/python3 > >import pyatspi >import time > >def onFocusedChanged(e): > try: > if e.host_application.name != "soffice": > return > except: > return > > # This is a paragraph giving up focus. We don't care. > if not e.detail1: > return > > timestamp = time.strftime("%H:%M:%S", time.localtime()) > print("%s - %s with index in parent %i - is focused." % (timestamp, e.source, e.source.getIndexInParent())) > >def onCaretMoved(e): > try: > if e.host_application.name != "soffice": > return > except: > return > > # This is a paragraph the caret is leaving. We don't care. > if e.detail1 == -1: > return > > timestamp = time.strftime("%H:%M:%S", time.localtime()) > print("%s - %s with index in parent %i - caret moved to offset %i." % (timestamp, e.source, e.source.getIndexInParent(), e.detail1)) > >pyatspi.Registry.registerEventListener(onFocusedChanged, "object:state-changed:focused") >pyatspi.Registry.registerEventListener(onCaretMoved, "object:text-caret-moved") >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 94113
:
118588
| 118590