I suggest you simply call create_menu_action with shortcut=False, then no registering will happen. You will need to jump through a few hoops to make sure the shortcuts still work though, since the keyboard manager will have the old action registered. Should be as simple as adding a method to the keyboard manager to replace the registered action for a given unique name
|