More LibreOffice work.

This commit is contained in:
Storm Dragon committed 2026-10-15 01:10:43 -04:00
1 parent 4ac59d4ced
commit b5a5b86dda
15 files changed
+768 -28

No files matched your search

+5 -2
View File
@@ -16,13 +16,16 @@ type applicationEventResult struct {
// prepareApplicationEvent runs after security/foreground checks and before
// generic focus and text filters. Application policy receives copied semantics;
// the reader retains ownership, review, cancellation, and output services.
// The first handler is stateless: document-specific state can be owned here
// when a concrete feature needs it, rather than hidden in native callbacks.
// Application-specific state stays on the event loop with an explicit focus
// lifetime, rather than hidden in native callbacks.
func (handler *accessibilityEventHandler) prepareApplicationEvent(event atspi.Event) (atspi.Event, bool) {
result := applicationEventResult{event: event}
if atspi.IsLibreOfficeProcess(event.Source.ApplicationProcess) {
result = prepareLibreOfficeEvent(event, handler.state.current, handler.state.owner)
}
if !result.suppress || event.Type == atspi.SelectionChangedEvent {
handler.handleLibreOfficeSelection(result.event)
}
if result.adoptFocus {
if handler.focusGate.Suspended() {
return event, false