ok($('.ui-selectmenu-menu li:eq(1)').hasClass('ui-selectmenu-item-focus'), 'after down arrow press, second item should have focus');
// simulate('keypress') not working consistently in all browsers
+ // this problem but for firefox now: http://bugs.jqueryui.com/ticket/3229
var e = new $.Event('keypress', { which: 'a'.charCodeAt(0) });
$('.ui-selectmenu-menu-dropdown').trigger(e);
ok($('.ui-selectmenu-menu li:eq(2)').hasClass('ui-selectmenu-item-focus'), 'after "a" key press, third item should have focus');
thisAAttr[ 'typeahead' ] = selectOptionData[ i ].typeahead;
}
var thisA = $('<a/>', thisAAttr)
- .bind('focus.selectmenu', function(e) {
+ .bind('focus.selectmenu', function() {
$(this).parent().mouseover();
})
.bind('blur.selectmenu', function() {
.bind("click.selectmenu", function() {
return false;
})
- .bind('mouseover.selectmenu', function(e) {
+ .bind('mouseover.selectmenu', function() {
// no hover if diabled
if (!$(this).hasClass(self.namespace + '-state-disabled') && !$(this).parent("ul").parent("li").hasClass(self.namespace + '-state-disabled')) {
self._selectedOptionLi().addClass(activeClass);