Skip to content

Commit

Permalink
8.3.0 (33095)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ketho committed Jan 22, 2020
1 parent ebb38d3 commit f836c16
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 10 deletions.
Expand Up @@ -928,6 +928,15 @@ local AuctionHouse =
Type = "Event",
LiteralName = "AUCTION_HOUSE_FAVORITES_UPDATED",
},
{
Name = "AuctionHouseNewBidReceived",
Type = "Event",
LiteralName = "AUCTION_HOUSE_NEW_BID_RECEIVED",
Payload =
{
{ Name = "auctionID", Type = "number", Nilable = false },
},
},
{
Name = "AuctionHouseScriptDeprecated",
Type = "Event",
Expand Down
Expand Up @@ -148,6 +148,7 @@ local AUCTIONS_FRAME_EVENTS = {
"BIDS_UPDATED",
"BID_ADDED",
"AUCTION_CANCELED",
"AUCTION_HOUSE_NEW_BID_RECEIVED",
};

local AuctionsFrameDisplayMode = {
Expand Down Expand Up @@ -227,6 +228,8 @@ function AuctionHouseAuctionsFrameMixin:OnEvent(event, ...)
end
elseif event == "AUCTION_CANCELED" then
self:RefreshSeachResults();
elseif event == "AUCTION_HOUSE_NEW_BID_RECEIVED" then
self:RefreshSeachResults();
end
end

Expand Down
2 changes: 1 addition & 1 deletion AddOns/Blizzard_Collections/Blizzard_Wardrobe.lua
Expand Up @@ -229,7 +229,7 @@ function WardrobeTransmogFrame_UpdateSlotButton(slotButton)
local sourceID = WardrobeTransmogFrame_GetDisplayedSource(correspondingWeaponButton);
if ( sourceID ~= NO_TRANSMOG_SOURCE_ID and not WardrobeCollectionFrame_CanEnchantSource(sourceID) ) then
-- clear anything in the enchant slot, otherwise cost and Apply button state will still reflect anything pending
C_Transmog.SetPending(slotButton.slotID, slotButton.transmogType, REMOVE_TRANSMOG_ID);
C_Transmog.ClearPending(slotButton.slotID, slotButton.transmogType);
isTransmogrified = false; -- handle legacy, this weapon could have had an illusion applied previously
canTransmogrify = false;
slotButton.invalidWeapon = true;
Expand Down
1 change: 1 addition & 0 deletions FrameXML/AutoComplete.lua
Expand Up @@ -407,6 +407,7 @@ function AutoCompleteEditBox_OnChar(self)
end

function AutoCompleteEditBox_OnEditFocusLost(self)
self:HighlightText(0, 0);
AutoComplete_HideIfAttachedTo(self);
end

Expand Down
2 changes: 1 addition & 1 deletion FrameXML/AutoComplete.xml
Expand Up @@ -30,7 +30,7 @@
<DisabledFont style="GameFontDisable"/>
<HighlightTexture inherits="UIPanelButtonHighlightTexture"/>
</Button>
<Frame name="AutoCompleteBox" parent="UIParent" hidden="true">
<Frame name="AutoCompleteBox" parent="UIParent" enableMouse="true" hidden="true">
<Size>
<AbsDimension x="5" y="5"/>
</Size>
Expand Down
19 changes: 11 additions & 8 deletions FrameXML/UIParent.lua
Expand Up @@ -2193,14 +2193,17 @@ function UIParent_OnEvent(self, event, ...)
end

-- Clear keyboard focus.
if event == "GLOBAL_MOUSE_DOWN" and buttonID == "LeftButton" and not IsModifierKeyDown() then
local keyBoardFocus = GetCurrentKeyBoardFocus();
if keyBoardFocus then
local hasStickyFocus = keyBoardFocus.HasStickyFocus and keyBoardFocus:HasStickyFocus();
if keyBoardFocus.ClearFocus and not hasStickyFocus and keyBoardFocus ~= mouseFocus then
keyBoardFocus:ClearFocus();
end
end
local autoCompleteShown = AutoCompleteBox and AutoCompleteBox:IsShown();
if not autoCompleteShown or not DoesAncestryInclude(AutoCompleteBox, mouseFocus) then
if event == "GLOBAL_MOUSE_DOWN" and buttonID == "LeftButton" and not IsModifierKeyDown() then
local keyBoardFocus = GetCurrentKeyBoardFocus();
if keyBoardFocus then
local hasStickyFocus = keyBoardFocus.HasStickyFocus and keyBoardFocus:HasStickyFocus();
if keyBoardFocus.ClearFocus and not hasStickyFocus and keyBoardFocus ~= mouseFocus then
keyBoardFocus:ClearFocus();
end
end
end
end
end
end
Expand Down

0 comments on commit f836c16

Please sign in to comment.