mirror of
https://github.com/zulip/zulip.git
synced 2026-07-15 21:03:26 +08:00
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:
parent
cfc2601451
commit
7912b2abbe
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user