editbox change. no longer highlights when gaining focus, double click highlights instead

This commit is contained in:
Manuel Simon Hirsig
2016-05-02 10:28:07 +02:00
parent a1faeadd2e
commit 2edf39c4ef
3 changed files with 27 additions and 14 deletions
+4 -1
View File
@@ -284,8 +284,11 @@ function m.editbox(parent, name)
editbox:SetBackdropColor(unpack(m.config.content_color))
editbox:SetBackdropBorderColor(unpack(m.config.content_border_color))
editbox:SetScript('OnEscapePressed', function()
editbox:SetScript('OnEditFocusLost', function()
this:HighlightText(0, 0)
end)
editbox:SetScript('OnEscapePressed', function()
this:ClearFocus()
end)