src/aria/utils/FireDomEvent.js
function (target, options) {
                if (ariaCoreBrowser.isOldIE || ariaCoreBrowser.isSafari) {
                    this.fireKeydownEventAdaptedForKeyNav = function (target, options) {
                        // For IE and Safari:
                        simulate(target, "keydown", options);
                    };
                } else {
                    this.fireKeydownEventAdaptedForKeyNav = function (target, options) {
                        // For other browsers than IE and Safari:
                        // Shitty implementation for keynav:
                        // Other browser that safari and IE need to listen to keydown
                        // and keypress, so we need to simulate both of them for these browser (firefox for instance)
                        simulate(target, "keydown", options);
                        simulate(target, "keypress", options);
                    };
                }
                this.fireKeydownEventAdaptedForKeyNav(target, options);
            }
function (target, options) {
                if (ariaCoreBrowser.isOldIE || ariaCoreBrowser.isSafari) {
                    this.fireKeydownEventAdaptedForKeyNav = function (target, options) {
                        // For IE and Safari:
                        simulate(target, "keydown", options);
                    };
                } else {
                    this.fireKeydownEventAdaptedForKeyNav = function (target, options) {
                        // For other browsers than IE and Safari:
                        // Shitty implementation for keynav:
                        // Other browser that safari and IE need to listen to keydown
                        // and keypress, so we need to simulate both of them for these browser (firefox for instance)
                        simulate(target, "keydown", options);
                        simulate(target, "keypress", options);
                    };
                }
                this.fireKeydownEventAdaptedForKeyNav(target, options);
            }
function ( target , options ) { if ( ariaCoreBrowser . isOldIE || ariaCoreBrowser . isSafari ) { this . fireKeydownEventAdaptedForKeyNav = function ( target , options ) { // For IE and Safari: simulate ( target , "keydown" , options ) ; } ; } else { this . fireKeydownEventAdaptedForKeyNav = function ( target , options ) { // For other browsers than IE and Safari: // Shitty implementation for keynav: // Other browser that safari and IE need to listen to keydown // and keypress, so we need to simulate both of them for these browser (firefox for instance) simulate ( target , "keydown" , options ) ; simulate ( target , "keypress" , options ) ; } ; } this . fireKeydownEventAdaptedForKeyNav ( target , options ) ; }
Simulate a keydown event used inside key navigation.
@method
Simulate a keydown event used inside key navigation .