WinJS.UI.XYFocus.focuschanged event
Raised when XYFocus has successfully changed focus. The HTMLElement.focus method does not trigger this event.
Syntax
function handler(eventInfo) { /* Your code */ }
// addEventListener syntax
WinJS.UI.XYFocus.addEventListener("focuschanged", handler);
WinJS.UI.XYFocus.removeEventListener("focuschanged", handler);
Event information
Synchronous | No |
Bubbles | Yes |
Cancelable | Yes |
Event handler parameters
eventInfo
Type: CustomEvent**An object that contains information about the event. The detail property of this object contains the following sub-properties:
detail.previousFocusElement
Type: HTMLElementThe element that previously had focus.
detail.keyCode
Type: NumberThe key code that triggered the focus change.
Remarks
After the moveFocus() function has been called, the focuschanging event fires. Once the new element has focus, the focuschanged event fires.
Requirements
Minimum WinJS version |
WinJS 3.0 |
Namespace |
WinJS.UI.XYFocus |