So the ‘ctrl+f’ keydown works beautifully, but the ‘esc’ keydown is breaking the accordion. Any ideas why?
Thanks for your help!
<script type ="text/javascript" >
$(document).ready(function() {
$("#resume-trd").accordion();
});
/* capture ctrl+f and open all accordion */
$(document).keydown(function(e){
if ((e.keyCode == 70) && (e.ctrlKey == true)) {
$('#resume-trd .ui-accordion-content').slideDown();
}
});
/* capture esc */
$(document).keydown(function(e){
if (e.keyCode == 27) {
$('#resume-trd .ui-accordion-content').slideUp();
}
});
</script>