Fix find bug causing a search to skip over the first result.

This would only happen when you hit enter directly, instead of using
the search up / down buttons.

(imported from commit 90301f64b3f24e91c103342bd6a7f1b3e61f8928)
This commit is contained in:
Jessica McKellar 2012-10-29 12:33:53 -04:00
parent cfc2601451
commit 7912b2abbe

View File

@ -129,8 +129,8 @@ process_key_in_input = function (code) {
compose.cancel();
}
if ((code === 13) && $("#search").is(":focus")) {
// Pass along the return keypress to the search up button.
$("#search_up").focus();
search_button_handler(true);
return;
}
// Otherwise, let the browser handle the key normally