This feels a little confusing.  A select box isn't a text field so maybe change to something like: 

```javascript

var keepFocus =  $target.is("input[type=text]") ||
                              ... ||
                             $target.is("select");

if (!keepFocus) {
     e.preventDefault();
}
```