From 2b9830e0bf5d44fbbf8812d90edc52292d8dadac Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Mon, 26 Dec 2016 15:09:36 +0100 Subject: [PATCH] alt-click bugfix --- gui/auction_listing.lua | 4 ++-- tabs/auctions/frame.lua | 4 ++-- tabs/bids/frame.lua | 4 ++-- tabs/search/frame.lua | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gui/auction_listing.lua b/gui/auction_listing.lua index 21291a8..42141d4 100644 --- a/gui/auction_listing.lua +++ b/gui/auction_listing.lua @@ -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, diff --git a/tabs/auctions/frame.lua b/tabs/auctions/frame.lua index 6adfb67..bac0df1 100644 --- a/tabs/auctions/frame.lua +++ b/tabs/auctions/frame.lua @@ -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) diff --git a/tabs/bids/frame.lua b/tabs/bids/frame.lua index 4a8523e..4f2fff8 100644 --- a/tabs/bids/frame.lua +++ b/tabs/bids/frame.lua @@ -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 diff --git a/tabs/search/frame.lua b/tabs/search/frame.lua index d4847f7..69c3801 100644 --- a/tabs/search/frame.lua +++ b/tabs/search/frame.lua @@ -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