From caf5e788c46aa265b5bc2a68ad9f362cdd0c9b90 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Sat, 23 Oct 2010 19:32:10 +0100 Subject: [PATCH] Allow 'Backslash' to be used as a binding key --- Clique.lua | 2 ++ Utils.lua | 2 ++ 2 files changed, 4 insertions(+) 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 -- 1.7.9.5