Can we add the possibility for the user to set their own shortcut with custom operator made in Pyhton like if it was a regular operator with right click and “Change shortcut”?
This option isn’t on the right click list for my operator.
class MyOp(bpy.types.Operator):
bl_idname = 'my_op.btn'
bl_label = 'My OP'
bl_options = {'REGISTER', 'UNDO'}
def execute(self, context):
print('something')
return {'FINISHED'}
layout.operator('my_op.btn')