MZ Disable Right-click Menu view

Hello. It might be awkward because I'm using a translator. I'm sorry.

I'm making a game using RMMZ,
I don't want the menu screen to be displayed if I right-click it in the game.
Can I get help with plug-ins etc related to this?
I Googled "rpg maker mz menu right click plugin" and found the following:
Paste this into a text editor, save as a *.js file, include as a plugin.
Code:
Scene_Map.prototype.isMenuCalled = function() {
    return Input.isTriggered('menu');
};

Original thread: https://forums.rpgmakerweb.com/threads/disable-right-click-menu-view.166149/