Fix in Show Hotkey List

Last change in keycap item broke ability to show hotkey list in Add On
preferences. Now it's fixed.
This commit is contained in:
Bartek Skorupa 2014-11-19 10:59:09 +01:00
parent 3599066a4b
commit 2918937972
1 changed files with 5 additions and 5 deletions

View File

@ -1058,18 +1058,18 @@ class NWNodeWrangler(bpy.types.AddonPreferences):
col.prop(self, "hotkey_list_filter", icon="VIEWZOOM")
col.separator()
for hotkey in kmi_defs:
if hotkey[6]:
hotkey_name = hotkey[6]
if hotkey[7]:
hotkey_name = hotkey[7]
if self.hotkey_list_filter.lower() in hotkey_name.lower():
row = col.row(align=True)
row.label(hotkey_name)
keystr = nice_hotkey_name(hotkey[1])
if hotkey[3]:
keystr = "Shift " + keystr
if hotkey[4]:
keystr = "Shift " + keystr
if hotkey[5]:
keystr = "Alt " + keystr
if hotkey[2]:
if hotkey[3]:
keystr = "Ctrl " + keystr
row.label(keystr)