Bugzilla – Attachment 88914 Details for
Bug 71409
Excessive duplicate accessible focused events for Calc input line [a11y]
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
accessible-event listener
focused.py (text/x-python), 655 bytes, created by
Joanmarie Diggs
on 2013-11-08 23:59:38 UTC
(
hide
)
Description:
accessible-event listener
Filename:
MIME Type:
Creator:
Joanmarie Diggs
Created:
2013-11-08 23:59:38 UTC
Size:
655 bytes
patch
obsolete
>#!/usr/bin/python > >import pyatspi > >def onFocused(e): > try: > if e.host_application.name != "soffice": > return > except: > return > > print(" {0:30} {1:6} {2}".format(e.type, str(bool(e.detail1)), e.source)) > >def onKey(e): > if e.type == pyatspi.KEY_PRESSED_EVENT: > eType = "PRESSED" > else: > eType = "RELEASED" > print("%s: %s" % (eType, e.event_string)) > >pyatspi.Registry.registerKeystrokeListener( > onKey, > mask=range(128), > kind=(pyatspi.KEY_PRESSED_EVENT, pyatspi.KEY_RELEASED_EVENT)) >pyatspi.Registry.registerEventListener(onFocused, "object:state-changed:focused") >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 71409
:
88914
|
120291
|
120292
|
120293
|
128731