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.

click_handlers: Use e.button instead of deceprated e.which.

Priyank Patel5fdcf7b53446
diff --git a/static/js/click_handlers.js b/static/js/click_handlers.js
index 966c3a1a364..d2f8ca54ac8 100644
--- a/static/js/click_handlers.js
+++ b/static/js/click_handlers.js
@@ -758,7 +758,7 @@ export function initialize() {
// Don't focus links on middle click.
$("body").on("mouseup", "a", (e) => {
- if (e.which === 2) {
+ if (e.button === 1) {
// middle click
e.target.blur();
}