To disable middle mouse button click in MS Edge

O V, Naveen 20 Reputation points
2025-02-11T08:32:54.91+00:00

How can I disable the middle mouse button click in MS Edge and web view 2 runtime applications in my system?

Is there a solution that we can do through the MS Edge settings or registry instead of capturing and preventing the middle mouse clicks in JavaScript?

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,501 questions
0 comments No comments
{count} votes

Accepted answer
  1. ShiJieLi-MSFT 12,091 Reputation points Microsoft External Staff
    2025-02-11T08:56:31.34+00:00

    Hi @O V, Naveen,

    Unfortunately, currently Microsoft Edge and WebView2 does not have any setting, policy or registry for disabling certain kind of mouse click. If you would like to request such settings/policy, please consider sending feedback in Microsoft Edge at ··· menu --> Help and feedback --> Send feedback.

    As a workaround, I'm afraid you'll need to disable the middle mouse click by JavaScript or scripts like AutoHotKey. Thanks for your understanding.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards,

    Shijie Li

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.