alt-click bugfix

This commit is contained in:
Manuel Simon Hirsig
2016-12-26 15:09:36 +01:00
parent 8f44a99f27
commit 2b9830e0bf
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -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,
+2 -2
View File
@@ -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
View File
@@ -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
+2 -2
View File
@@ -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