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 status: Fix keyboard UI in status emoji picker.

Riken Shahd6286e76c810
diff --git a/static/js/hotkey.js b/static/js/hotkey.js
index 8904b39e1b9..55ae334f163 100644
--- a/static/js/hotkey.js
+++ b/static/js/hotkey.js
@@ -564,6 +564,12 @@ export function process_hotkey(e, hotkey) {
return process_shift_tab_key();
}
+ // This block needs to be before the open modals check, because
+ // the "user status" modal can show the emoji picker.
+ if (emoji_picker.reactions_popped()) {
+ return emoji_picker.navigate(event_name);
+ }
+
if (overlays.is_modal_open()) {
return false;
}
@@ -610,10 +616,6 @@ export function process_hotkey(e, hotkey) {
return false;
}
- if (emoji_picker.reactions_popped()) {
- return emoji_picker.navigate(event_name);
- }
-
if (hotspots.is_open()) {
return false;
}