Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Search Filter Checkboxes & Tabbing Issues › Reply To: Search Filter Checkboxes & Tabbing Issues
July 17, 2022 at 3:53 pm
#38449
Keymaster
Thank you very much!
I managed to find the bug and fix it, the fix will be included in the upcoming release. It was only present with very specific configurations only, it went under our radars.
I also corrected the custom code, the tabbing should now work. For reference, the correct code is:
add_action('wp_footer', 'asp_tab_trigger_right');
function asp_tab_trigger_right() {
?>
<script>
jQuery(function($){
$('input.orig').on('keydown', function(e){
var kc = e.which || e.keyCode;
if ( kc == 9 ) {
e.preventDefault();
var ev = new Event('keyup');
ev.which = 39;
this.dispatchEvent(ev);
}
});
});
</script>
<?php
}