| | |
- orca.presentation_manager.PresentationManager
-
- FocusTrackingPresenter
class FocusTrackingPresenter(orca.presentation_manager.PresentationManager) |
| |
Maintain a set of scripts for all running applications, and
also keeps the notion of an activeScript. All object events are
passed to the associated script for that application, regardless if
the application has keyboard focus or not. All keyboard events are
passed to the active script only if it has indicated interest in the
event. |
| |
Methods defined here:
- __init__(self)
- activate(self)
- Called when this presentation manager is activated.
- deactivate(self)
- Called when this presentation manager is deactivated.
- loadAppSettings(self, app)
- Load the users application specific settings for an app.
Arguments:
- app: the Python app
- locusOfFocusChanged(self, event, oldLocusOfFocus, newLocusOfFocus)
- Called when the visual object with focus changes.
Arguments:
- event: if not None, the Event that caused the change
- oldLocusOfFocus: Accessible that is the old locus of focus
- newLocusOfFocus: Accessible that is the new locus of focus
- processBrailleEvent(self, brailleEvent)
- Called whenever a cursor key is pressed on the Braille display.
Arguments:
- brailleEvent: an instance of input_event.BrailleEvent
Returns True if the command was consumed; otherwise False
- processKeyboardEvent(self, keyboardEvent)
- Processes the given keyboard event based on the keybinding from the
currently active script. This method is called synchronously from the
at-spi registry and should be performant. In addition, it must return
True if it has consumed the event (and False if not).
Arguments:
- keyboardEvent: an instance of input_event.KeyboardEvent
Returns True if the event should be consumed.
- visualAppearanceChanged(self, event, obj)
- Called when the visual appearance of an object changes.
This method should not be called for objects whose visual
appearance changes solely because of focus -- locusOfFocusChanged
is used for that. Instead, it is intended mostly for objects
whose notional 'value' has changed, such as a checkbox changing
state, a progress bar advancing, a slider moving, text inserted,
caret moved, etc.
Arguments:
- event: if not None, the Event that caused this to happen
- obj: the Accessible whose visual appearance changed.
| |