Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
hotkey: Toggle gear_menu on clicking `g` hotkey.
Deekshith S Shettyfc1477499ba7
diff --git a/web/src/hotkey.js b/web/src/hotkey.jsindex c16ebf71ed2..239fce3bfb7 100644--- a/web/src/hotkey.js+++ b/web/src/hotkey.js@@ -662,6 +662,13 @@ export function process_hotkey(e, hotkey) {}if (hotkey.message_view_only && gear_menu.is_open()) {+ // Inside the gear menu, we don't process most hotkeys; the+ // exception is that the gear_menu hotkey should toggle the+ // menu closed again.+ if (event_name === "gear_menu") {+ gear_menu.close();+ return true;+ }return false;}