diff --git a/static/js/recent_topics.js b/static/js/recent_topics.js index 848bbefd1a..c87d0d13ae 100644 --- a/static/js/recent_topics.js +++ b/static/js/recent_topics.js @@ -78,6 +78,12 @@ function revive_current_focus() { // After re-render, the current_focus_elem is no longer linked // to the focused element, this function attempts to revive the // link and focus to the element prior to the rerender. + + // Don't change focus if user is trying to type anywhere. + if ($(".home-page-input").is(":focus")) { + return false; + } + if (!current_focus_elem) { set_default_focus(); return false; diff --git a/templates/zerver/app/left_sidebar.html b/templates/zerver/app/left_sidebar.html index f535ce50cb..ef55ff9ef0 100644 --- a/templates/zerver/app/left_sidebar.html +++ b/templates/zerver/app/left_sidebar.html @@ -71,7 +71,7 @@