changed itemlink searching shortcut to rightclick

This commit is contained in:
Manuel Simon Hirsig
2016-03-21 00:50:11 +01:00
parent f1db874338
commit 3743e24979
+2 -2
View File
@@ -1,5 +1,5 @@
Aux = { Aux = {
version = '2.8.5', version = '2.8.6',
blizzard_ui_shown = false, blizzard_ui_shown = false,
orig = {}, orig = {},
} }
@@ -295,7 +295,7 @@ end
function Aux.SetItemRef(...) function Aux.SetItemRef(...)
local itemstring, text, button = unpack(arg) local itemstring, text, button = unpack(arg)
if IsAltKeyDown() and AuxSearchFrame:IsVisible() then if AuxSearchFrame:IsVisible() and button == 'RightButton' then
local item_info = Aux.info.item(tonumber(({strfind(itemstring, '^item:(%d+)')})[3])) local item_info = Aux.info.item(tonumber(({strfind(itemstring, '^item:(%d+)')})[3]))
if item_info then if item_info then
Aux.search_frame.set_filter(item_info.name..'/exact') Aux.search_frame.set_filter(item_info.name..'/exact')