Skip to content

Commit

Permalink
remove focus on enter
Browse files Browse the repository at this point in the history
  • Loading branch information
tg123 committed May 3, 2020
1 parent eb928cc commit 366f3d1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1335,6 +1335,7 @@ function GUI:Init()
cellFrame.textBox:SetHeight(30)
cellFrame.textBox:SetAutoFocus(false)
cellFrame.textBox:SetScript("OnEscapePressed", cellFrame.textBox.ClearFocus)
cellFrame.textBox:SetScript("OnEnterPressed", cellFrame.textBox.ClearFocus)
popOnFocus(cellFrame.textBox)

if entry["lock"] then
Expand Down Expand Up @@ -1407,6 +1408,8 @@ function GUI:Init()
cellFrame.textBox:SetHeight(30)
cellFrame.textBox:SetAutoFocus(false)
cellFrame.textBox:SetScript("OnEscapePressed", cellFrame.textBox.ClearFocus)
cellFrame.textBox:SetScript("OnEnterPressed", cellFrame.textBox.ClearFocus)

AutoCompleteEditBox_SetAutoCompleteSource(cellFrame.textBox, autoCompleteRaidRoster)
popOnFocus(cellFrame.textBox)

Expand Down Expand Up @@ -1494,6 +1497,8 @@ function GUI:Init()
cellFrame.textBox:SetAutoFocus(false)
cellFrame.textBox:SetMaxLetters(10)
cellFrame.textBox:SetScript("OnChar", mustnumber)
cellFrame.textBox:SetScript("OnEnterPressed", cellFrame.textBox.ClearFocus)
cellFrame.textBox:SetScript("OnEscapePressed", cellFrame.textBox.ClearFocus)

if entry["lock"] then
cellFrame.textBox:Disable()
Expand Down

0 comments on commit 366f3d1

Please sign in to comment.