Programmer's Guide > Programming and Scripting Techniques > Events > Application-Dependent Features
  
Application-Dependent Features
The DOM Level 2 Events specification defines the DOMFocusIn, DOMFocusOut, and DOMActivate user interface events, but does not define when they will occur. The specification also allows implementation-dependent treatment of the DOMSubtreeModified mutation event. The following table describes when these events occur in Arbortext Editor and the Arbortext Publishing Engine:
Event
Occurrence
DOMFocusIn
Two occurrences:
When the cursor of the view that has keyboard input focus moves into an event target.
When the keyboard input focus switches from another view to the current view while the cursor of the current view is inside an event target.
DOMFocusOut
Two occurrences:
When the cursor of the view that has keyboard input focus moves out of an event target.
When the keyboard input focus switches from the current view to another view while the cursor of the current view is inside an event target.
DOMActivate
When an event target is activated through a mouse double-click.
For a XUI document, this event will be dispatched when its corresponding dialog box state changes, such as when a check box is selected, an item of a list box is selected, a push button is pressed, and so on.
DOMSubtreeModified
Certain user interface actions like Insert > Markup can result in multiple changes to the document; only a single DOMSubtreeModified event will be fired in those cases.
Refer to Event Types for a description of each event type.