diff --git a/server/files/javascript/semantic.js b/server/files/javascript/semantic.js index 56aeba4cf..9984cca1d 100755 --- a/server/files/javascript/semantic.js +++ b/server/files/javascript/semantic.js @@ -668,7 +668,8 @@ semantic.ready = function() { $menuDropdown .dropdown({ on : 'hover', - action : 'nothing' + action : 'nothing', + allowTab : false }) ; diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index d2144698d..b4d27b717 100755 --- a/src/definitions/modules/dropdown.js +++ b/src/definitions/modules/dropdown.js @@ -112,26 +112,28 @@ $.fn.dropdown = function(parameters) { .insertBefore($text) ; } - if( module.is.searchable() ) { - module.debug('Searchable dropdown initialized'); - $search - .val('') - .attr('tabindex', 0) - ; - $menu - .attr('tabindex', '-1') - ; - } - else { - module.debug('Simple selection dropdown initialized'); - if(!$module.attr('tabindex') ) { - $module + if(settings.allowTab) { + if( module.is.searchable() ) { + module.debug('Searchable dropdown initialized'); + $search + .val('') .attr('tabindex', 0) ; $menu .attr('tabindex', '-1') ; } + else { + module.debug('Simple selection dropdown initialized'); + if(!$module.attr('tabindex') ) { + $module + .attr('tabindex', 0) + ; + $menu + .attr('tabindex', '-1') + ; + } + } } }, select: function() { @@ -1279,6 +1281,7 @@ $.fn.dropdown.settings = { on : 'click', action : 'activate', + allowTab : true, fullTextSearch : true, preserveHTML : true,