Lines Matching refs:event
199 * <a href="event/#keylistener"><code>key</code></a> event listeners. See
200 * the <a href="event/#keylistener">Using the key Event</a> section of
201 * the Event documentation for more information on "key" event listeners.
270 // Array of handles for event handlers used for a NodeFocusManager instance.
376 // "activeDescendantChange" event handler used to manage
431 * @description Detaches the "key" event handlers used to support the "keys"
457 _preventScroll: function (event) {
459 if (scrollKeys[event.keyCode] && this._isDescendant(event.target)) {
460 event.preventDefault();
468 * @description Fires the click event if the enter key is pressed while
472 _fireClick: function (event) {
474 var oTarget = event.target,
477 if (event.keyCode === 13 && (!clickableElements[sNodeName] ||
480 Y.log(("Firing click event for node:" + oTarget.get("id")), "info", "nodeFocusManager");
491 * @description Attaches the "key" event handlers used to support the "keys"
527 // fire a click event when the user presses the enter key. It is
529 // click event in response to the user pressing the enter key.
540 * @description Detaches all event handlers used by the Focus Manager.
564 * @description Attaches all event handlers used by the Focus Manager.
582 Y.log("Attaching base set of event handlers.", "info", "nodeFocusManager");
600 // For performance: defer attaching all key-related event
604 handle = this.after("focusedChange", Y.bind(function (event) {
606 if (event.newVal) {
608 Y.log("Attaching key event handlers.", "info", "nodeFocusManager");
633 // Protected event handlers
637 * @description "mousedown" event handler for the owner document of the
640 * @param event {Object} Object representing the DOM event.
642 _onDocMouseDown: function (event) {
645 oTarget = event.target,
681 this._onDocFocus(event);
694 // was the target of the mousedown event is now considered the
714 this._onDocFocus(event);
723 * @description "focus" event handler for the owner document of the
726 * @param event {Object} Object representing the DOM event.
728 _onDocFocus: function (event) {
730 var oTarget = this._focusTarget || event.target,
804 * @description Keydown event handler that moves focus to the next
807 * @param event {Object} Object representing the DOM event.
811 _focusNext: function (event, activeDescendant) {
817 if (this._isDescendant(event.target) &&
834 this._focusNext(event, nActiveDescendant);
844 this._preventScroll(event);
851 * @description Keydown event handler that moves focus to the previous
854 * @param event {Object} Object representing the DOM event.
858 _focusPrevious: function (event, activeDescendant) {
863 if (this._isDescendant(event.target) && nActiveDescendant >= 0) {
876 this._focusPrevious(event, nActiveDescendant);
886 this._preventScroll(event);
893 * @description afterChange event handler for the
896 * @param event {Object} Object representing the change event.
898 _afterActiveDescendantChange: function (event) {
900 var oNode = this._descendants.item(event.prevVal);
906 oNode = this._descendants.item(event.newVal);
956 // will result in the document-level focus event handler
1024 * @description Disables the Focus Manager by detaching all event handlers.