“cmd.button” can be used to redefine what the mouse buttons do.
cmd.button(string button, string modifier, string action)
def button(button, modifier, action):
button | cmd.config_mouse | api