Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

user_profile: Navigate tabs by arrow keys.

nimishmedatwal8e0518d777cc
diff --git a/web/src/user_profile.js b/web/src/user_profile.js
index 58ff6711460..abf9854395a 100644
--- a/web/src/user_profile.js
+++ b/web/src/user_profile.js
@@ -481,6 +481,9 @@ export function show_user_profile(user, default_tab_key = "profile-tab") {
const $elem = toggler.get();
$elem.addClass("large allow-overflow");
$("#tab-toggle").append($elem);
+ setTimeout(() => {
+ $(".ind-tab.selected").trigger("focus");
+ }, 0);
if (show_user_subscribe_widget) {
reset_subscribe_widget();
}