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.

hotkey: Fix enter key being handled both by browser and the app.

Aman Agrawalab7415105d94
diff --git a/static/js/hotkey.js b/static/js/hotkey.js
index 4fd034454ad..420b332b652 100644
--- a/static/js/hotkey.js
+++ b/static/js/hotkey.js
@@ -438,7 +438,7 @@ export function process_enter_key(e) {
if ($(e.target).attr("role") === "button") {
e.target.click();
- return false;
+ return true;
}
// All custom logic for overlays/modals is above; if we're in a