bugfix for alt shortcuts

This commit is contained in:
Manuel Simon Hirsig
2017-03-25 12:11:36 +01:00
parent 373f482843
commit 82e2ea340f
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ listing = auction_listing.new(frame.listing, 20, auction_listing.auctions_column
listing:SetSort(1, 2, 3, 4, 5, 6, 7, 8)
listing:Reset()
listing:SetHandler('OnClick', function(row, button)
if IsAltKeyDown() and listing:GetSelection().record == row.data.record then
if IsAltKeyDown() and listing:GetSelection().record == row.record then
cancel_button:Click()
end
end)
+1 -1
View File
@@ -17,7 +17,7 @@ listing = auction_listing.new(frame.listing, 20, auction_listing.bids_columns)
listing:SetSort(1, 2, 3, 4, 5, 6, 7, 8)
listing:Reset()
listing:SetHandler('OnClick', function(row, button)
if IsAltKeyDown() and listing:GetSelection().record == row.data.record then
if IsAltKeyDown() and listing:GetSelection().record == row.record then
if button == 'LeftButton' then
buyout_button:Click()
elseif button == 'RightButton' then
+1 -1
View File
@@ -519,7 +519,7 @@ for _ = 1, 5 do
local table = auction_listing.new(frame.results, 16, auction_listing.search_columns)
table:SetHandler('OnClick', function(row, button)
if IsAltKeyDown() and current_search.table:GetSelection().record == row.data.record then
if IsAltKeyDown() and current_search.table:GetSelection().record == row.record then
if button == 'LeftButton' then
buyout_button:Click()
elseif button == 'RightButton' then