From 2918937972c4b87bff41b8e0b7cdd7c9c0076ef7 Mon Sep 17 00:00:00 2001
From: Bartek Skorupa <bartekskorupa@bartekskorupa.com>
Date: Wed, 19 Nov 2014 10:59:09 +0100
Subject: [PATCH] Fix in Show Hotkey List

Last change in keycap item broke ability to show hotkey list in Add On
preferences. Now it's fixed.
---
 node_efficiency_tools.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/node_efficiency_tools.py b/node_efficiency_tools.py
index f36046f00..c4214ddf0 100644
--- a/node_efficiency_tools.py
+++ b/node_efficiency_tools.py
@@ -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)
 
-- 
GitLab