|
@@ -152,7 +152,7 @@
|
|
|
|
|
|
// handle pressing S to focus the search
|
|
// handle pressing S to focus the search
|
|
$(document.body).bind('keyup', function (event) {
|
|
$(document.body).bind('keyup', function (event) {
|
|
- if (event.which === 83 && (!document.activeElement || document.activeElement.tagName !== 'INPUT')) {
|
|
|
|
|
|
+ if (event.which === 83 && (!document.activeElement || -1 === ['INPUT','SELECT','TEXTAREA'].indexOf(document.activeElement.tagName))) {
|
|
$('#search_query_query').focus();
|
|
$('#search_query_query').focus();
|
|
}
|
|
}
|
|
});
|
|
});
|