Quantcast

Allow 'Backslash' to be used as a binding key

James Whitehead II [10-23-10 - 18:32]
Allow 'Backslash' to be used as a binding key
Filename
Clique.lua
Utils.lua
diff --git a/Clique.lua b/Clique.lua
index 33f9fcd..a17e0a7 100755
--- a/Clique.lua
+++ b/Clique.lua
@@ -445,6 +445,8 @@ function addon:GetBindingAttributes(global)

                 if key == "DASH" then
                     key = "-"
+                elseif key == "BACKSLASH" then
+                    key = "\\"
                 end

                 set[#set + 1] = B_SET:format(key, suffix)
diff --git a/Utils.lua b/Utils.lua
index e3ea6b4..2ae8abf 100644
--- a/Utils.lua
+++ b/Utils.lua
@@ -233,6 +233,8 @@ function addon:GetCapturedKey(key)
         key = "BUTTON3"
     elseif key == "-" then
         key = "DASH"
+    elseif key == "\\" then
+        key = "BACKSLASH"
     else
         local buttonNum = key:match("Button(%d+)")
         if buttonNum and tonumber(buttonNum) <= 31 then