FocusEvent
An object dispatches a FocusEvent object when the user changes the focus from one object in the display list to another.
Inherited from Event.
Can be created with method new:
Lib.Media.Events.FocusEvent.new(type, bubbles, cancelable, relatedObject, shiftKey, keyCode, direction) |
Creates an Event object with specific information relevant to focus events. |
type - The type of the event. Possible values are: FocusEvent.FOCUS_IN, FocusEvent.FOCUS_OUT, FocusEvent.KEY_FOCUS_CHANGE, and FocusEvent.MOUSE_FOCUS_CHANGE. bubbles - (default = true) - Determines whether the Event object participates in the bubbling stage of the event flow. cancelable - (default = false) - Determines whether the Event object can be canceled. relatedObject - (default = null) - Indicates the complementary InteractiveObject instance that is affected by the change in focus. For example, when a focusIn event occurs, relatedObject represents the InteractiveObject that has lost focus. shiftKey - (default = false) - Indicates whether the Shift key modifier is activated. keyCode - (default = 0) - Indicates the code of the key pressed to trigger a keyFocusChange event. direction - (default = "none") - Indicates from which direction the target interactive object is being activated. Set to FocusDirection.NONE (the default value "none") for all events other than focusIn. (not supported) |
Created FocusEvent object has properties:
direction |
Specifies direction of focus for a focusIn event. |
keyCode |
The key code value of the key pressed to trigger a keyFocusChange event. |
relatedObject |
A reference to the complementary InteractiveObject instance that is affected by the change in focus. |
shiftKey |
Indicates whether the Shift key modifier is activated, in which case the value is true. |
methods:
clone() |
Creates a copy of the FocusEvent object and sets the value of each property to match that of the original. |
|
toString() |
Returns a string that contains all the properties of the FocusEvent object. |
|
Event types:
Lib.Media.Events.FocusEvent.FOCUS_IN |
Defines the value of the type property of a focusIn event object. |
Lib.Media.Events.FocusEvent.FOCUS_OUT |
Defines the value of the type property of a focusOut event object. |
Lib.Media.Events.FocusEvent.KEY_FOCUS_CHANGE |
Defines the value of the type property of a keyFocusChange event object. |
Lib.Media.Events.FocusEvent.MOUSE_FOCUS_CHANGE |
Defines the value of the type property of a mouseFocusChange event object. |
Created with the Personal Edition of HelpNDoc: Create help files for the Qt Help Framework