Skip to content

Commit

Permalink
shift clicking spells into WA not working #1360
Browse files Browse the repository at this point in the history
  • Loading branch information
kodewdle committed Oct 5, 2024
1 parent 59f8a70 commit dfc044f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--[[-----------------------------------------------------------------------------
EditBox Widget
-------------------------------------------------------------------------------]]
local Type, Version = "EditBox-ElvUI", 29
local Type, Version = "EditBox-ElvUI", 30
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end

Expand Down Expand Up @@ -35,12 +35,12 @@ end
--[[-----------------------------------------------------------------------------
Support functions
-------------------------------------------------------------------------------]]
if not AceGUIEditBoxInsertLink then
if not AceGUIEditBoxInsertLinkElvUI then
-- upgradeable hook
hooksecurefunc("ChatEdit_InsertLink", function(...) return _G.AceGUIEditBoxInsertLink(...) end)
hooksecurefunc("ChatEdit_InsertLink", function(...) return _G.AceGUIEditBoxInsertLinkElvUI(...) end)
end

function _G.AceGUIEditBoxInsertLink(text)
function _G.AceGUIEditBoxInsertLinkElvUI(text)
for i = 1, AceGUI:GetWidgetCount(Type) do
local editbox = _G["ElvUIAceGUI-3.0EditBox"..i]
if editbox and editbox:IsVisible() and editbox:HasFocus() then
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--[[-----------------------------------------------------------------------------
MultiLineEditBox Widget (Modified to add Syntax highlighting from FAIAP)
-------------------------------------------------------------------------------]]
local Type, Version = "MultiLineEditBox-ElvUI", 33
local Type, Version = "MultiLineEditBox-ElvUI", 34
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end

Expand Down Expand Up @@ -31,12 +31,12 @@ end
Support functions
-------------------------------------------------------------------------------]]

if not AceGUIMultiLineEditBoxInsertLink then
if not AceGUIMultiLineEditBoxInsertLinkElvUI then
-- upgradeable hook
hooksecurefunc("ChatEdit_InsertLink", function(...) return _G.AceGUIMultiLineEditBoxInsertLink(...) end)
hooksecurefunc("ChatEdit_InsertLink", function(...) return _G.AceGUIMultiLineEditBoxInsertLinkElvUI(...) end)
end

function _G.AceGUIMultiLineEditBoxInsertLink(text)
function _G.AceGUIMultiLineEditBoxInsertLinkElvUI(text)
for i = 1, AceGUI:GetWidgetCount(Type) do
local editbox = _G[("MultiLineEditBox%uEdit"):format(i)]
if editbox and editbox:IsVisible() and editbox:HasFocus() then
Expand Down

0 comments on commit dfc044f

Please sign in to comment.