Disabling mouse right click > to menu

Sorry if this has been asked before, but is there any way to do this? i know of some plugins that disable the whole mouse but i only want to get rid of this right click to menu shortcut, since im using my own evented menu.
Im asking this because in the case of the cancel button is rather easy to substute the menu shortcut with a parallel event but in the case of the right mouse button it simply runs the event then opens the menu.
edit
Code:
Scene_Map.prototype.isMenuCalled = function() {
    return Input.isTriggered('menu') || TouchInput.isCancelled();
};
to
Code:
Scene_Map.prototype.isMenuCalled = function() {
    return Input.isTriggered('menu');
};
@Poryg works like a charm thanks a lot! 😀

Original thread: https://forums.rpgmakerweb.com/threads/disabling-mouse-right-click-to-menu.89946/