From 7912b2abbeccf753b66509bbf2e5c17ae36ec0c3 Mon Sep 17 00:00:00 2001 From: Jessica McKellar Date: Mon, 29 Oct 2012 12:33:53 -0400 Subject: [PATCH] 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) --- zephyr/static/js/hotkey.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zephyr/static/js/hotkey.js b/zephyr/static/js/hotkey.js index e5b7da65b8..573d5997f6 100644 --- a/zephyr/static/js/hotkey.js +++ b/zephyr/static/js/hotkey.js @@ -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