Skip to content

Commit

Permalink
Minor code cleanup after keydown fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sellorio committed Nov 17, 2022
1 parent b09d3fb commit 2ca3f71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/mega-macro-engine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ end
local function GetMacroStubCode(macroId)
-- Fix a bug that causes click events not to register only when CVar ActionButtonUseKeyDown is set to 1.
local keyDownOrUp = GetCVar("ActionButtonUseKeyDown")
local primaryMacroButtonClickValue = GetCVar("ActionButtonUseKeyDown") == "1" and " LeftButton" or " "
local primaryMacroButtonClickValue = keyDownOrUp == "1" and " LeftButton" or ""
return
GenerateIdPrefix(macroId).."\n"..
"/click [btn:1] "..ClickyFrameName..macroId..primaryMacroButtonClickValue.." "..keyDownOrUp.."\n"..
Expand Down
1 change: 1 addition & 0 deletions src/globals.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ ANCHOR_CURSOR = nil
ANCHOR_PRESERVE = nil
ANCHOR_NONE = nil

GetCVar = function(variable) end
LibStub = function(major, minor) major._ = minor end
ShowUIPanel = function(panel) panel._ = nil end
CreateFrame = function(type, name, parent, template) type._ = name + parent + template; return nil end
Expand Down

0 comments on commit 2ca3f71

Please sign in to comment.