From 0a2f710d7e8c47d14ebcf7afeb02543dc428033f Mon Sep 17 00:00:00 2001 From: tanhanze Date: Sun, 18 Jun 2023 15:05:57 +0800 Subject: [PATCH] preventdefault --- client/client.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/client.js b/client/client.js index 26d0cc0..1606ae0 100644 --- a/client/client.js +++ b/client/client.js @@ -586,7 +586,8 @@ function pushMessage(args) { $('#chatinput').focus(); } // Thanks to crosst.chat for this part of code!(reply) - nickLinkEl.oncontextmenu = function () { + nickLinkEl.oncontextmenu = function (e) { + e.preventDefault() // Temporary quick banning if ($('#chatinput').value.trim() == '#ban') { // Ban a user though a message