alt-click bugfix
This commit is contained in:
@@ -629,8 +629,8 @@ local methods = {
|
||||
local selection = this.rt:GetSelection()
|
||||
if not selection or selection.record ~= this.data.record then
|
||||
this.rt:SetSelectedRecord(this.data.record)
|
||||
elseif this.rt.handlers.OnCellClick then
|
||||
this.rt.handlers.OnCellClick(this, button)
|
||||
elseif this.rt.handlers.OnClick then
|
||||
this.rt.handlers.OnClick(this, button)
|
||||
end
|
||||
end
|
||||
end,
|
||||
|
||||
@@ -16,8 +16,8 @@ frame.listing:SetPoint('BOTTOMRIGHT', AuxFrame.content, 'BOTTOMRIGHT', 0, 0)
|
||||
listing = auction_listing.new(frame.listing, 20, auction_listing.auctions_columns)
|
||||
listing:SetSort(1, 2, 3, 4, 5, 6, 7, 8)
|
||||
listing:Reset()
|
||||
listing:SetHandler('OnCellClick', function(cell, button)
|
||||
if IsAltKeyDown() and listing:GetSelection().record == cell.row.data.record then
|
||||
listing:SetHandler('OnClick', function(row, button)
|
||||
if IsAltKeyDown() and listing:GetSelection().record == row.data.record then
|
||||
cancel_button:Click()
|
||||
end
|
||||
end)
|
||||
|
||||
+2
-2
@@ -16,8 +16,8 @@ frame.listing:SetPoint('BOTTOMRIGHT', AuxFrame.content, 'BOTTOMRIGHT', 0, 0)
|
||||
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('OnCellClick', function(cell, button)
|
||||
if IsAltKeyDown() and listing:GetSelection().record == cell.row.data.record then
|
||||
listing:SetHandler('OnClick', function(row, button)
|
||||
if IsAltKeyDown() and listing:GetSelection().record == row.data.record then
|
||||
if button == 'LeftButton' then
|
||||
buyout_button:Click()
|
||||
elseif button == 'RightButton' then
|
||||
|
||||
@@ -518,8 +518,8 @@ for _ = 1, 5 do
|
||||
tinsert(status_bars, status_bar)
|
||||
|
||||
local table = auction_listing.new(frame.results, 16, auction_listing.search_columns)
|
||||
table:SetHandler('OnCellClick', function(cell, button)
|
||||
if IsAltKeyDown() and current_search.table:GetSelection().record == cell.row.data.record then
|
||||
table:SetHandler('OnClick', function(row, button)
|
||||
if IsAltKeyDown() and current_search.table:GetSelection().record == row.data.record then
|
||||
if button == 'LeftButton' then
|
||||
buyout_button:Click()
|
||||
elseif button == 'RightButton' then
|
||||
|
||||
Reference in New Issue
Block a user