Re: How to use eventHandler.requestEvents
toggle quoted message Show quoted text
Where did you see “focusChanged” event defined in NVDA? I can’t see that event defined in my copy of NVDA screen reader source code at the moment.
To answer the original question at hand: without going into details (something reserved for NVDA Add-ons list), eventHandler.requestEvents function is designed to let app modules respond to app events in the background. This is useful if you need to let NvDA monitor changes to an app control from everywhere. For example, an app might raise name change event in an app, and you may wish to let NVDA announce changes to this control from everywhere. A practical example in use is StationPlaylist add-on where NVDA is told to monitor for changes in status bar texts from everywhere.
From: email@example.com <firstname.lastname@example.org> On Behalf Of falkogiepmans@...
Sent: Wednesday, April 14, 2021 5:17 AM
Subject: [nvda] How to use eventHandler.requestEvents