Combining multiple selectors in jQuery
<p>I'm trying to find a solution to make this code cleaner:</p>

<pre><code>$(document).keypress(function(ev){
         if($("#dialog").is(':visible') === false &amp;&amp; $("#alertDialog").is(':visible') === false){
            if(ev.keyCode=='13' &amp;&amp; !$('#resetBtn').is(':focus') &amp;&amp; !$('.edit-new').is(':focus') &amp;&amp; !$('.edit-trash').is(':focus')){
                return validateForm('valueTable');
            } 
            if(ev.keyCode=='27'){
                $('#resetBtn').click();
            }
         }
     });
</code></pre>

<p>As you can see, I'm checking to see if three seperate inputs are not in foucs before exectuing my event. Is there a way to target #resetBtn, .edit-new, .edit-trash into one, nicely packed selector?</p>
