Expose keymaps

1.7.6

- ui: expose (almost) all keymap added by the addon to allow user for customize/disable as needed
- ui: changed some names
This commit is contained in:
Pullusb
2021-10-29 16:49:38 +02:00
parent 44ccb3d146
commit 204553ed47
7 changed files with 107 additions and 43 deletions
+4 -3
View File
@@ -756,7 +756,9 @@ def show_message_box(_message = "", _title = "Message Box", _icon = 'INFO'):
def draw_kmi(km, kmi, layout):
map_type = kmi.map_type
# col = _indented_layout(layout)
## col = _indented_layout(layout)
# layout.label(text=f'{km.name} - {km.space_type} - {km.region_type}') # debug
# layout.label(text=f'{km.name}')
col = layout.column()
if kmi.show_expanded:
col = col.column(align=True)
@@ -799,7 +801,7 @@ def draw_kmi(km, kmi, layout):
if (not kmi.is_user_defined) and kmi.is_user_modified:
row.operator("preferences.keyitem_restore", text="", icon='BACK').item_id = kmi.id
else:
pass ### NO REMOVB
pass ### NO REMOVE
# row.operator(
# "preferences.keyitem_remove",
# text="",
@@ -848,7 +850,6 @@ def draw_kmi(km, kmi, layout):
# Operator properties
box.template_keymap_item_properties(kmi)
## Modal key maps attached to this operator
# if not km.is_modal:
# kmm = kc.keymaps.find_modal(kmi.idname)