Stanzilla / WoWUIBugs

World of Warcraft UI Bug Tracker
166 stars 7 forks source link

When an EditBox gains focus during a keybind, the character pressed is inserted into the EditBox. #463

Open mikuhl-dev opened 1 year ago

mikuhl-dev commented 1 year ago
local frame = CreateFrame("EditBox", "TestFrame", UIParent, "SearchBoxTemplate")
frame:Hide()
frame:SetAutoFocus(true)
frame:SetSize(200, 20)
frame:SetPoint("CENTER")
    <Binding name="TESTBINDING" header="TESTBINDING"
        category="TESTBINDING"
        default="SHIFT+/">
        TestFrame:Show()
    </Binding>

In this example, when you use the keybind to show the frame, a "?" character will automatically populate into the edit box.

mikuhl-dev commented 1 year ago

Easily reproducible by binding "Open Chat" to to any character key, with or without shift, and not with ctrl. So therefore, happens when an edit box gains focus in the middle of a keybind.