mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 16:34:45 +00:00
AceGUIWidget-MultiLineEditBox enable cursor reposition
This commit is contained in:
@@ -101,7 +101,7 @@ end
|
||||
local function OnMouseUp() -- ScrollFrame
|
||||
local self = this.obj.editBox
|
||||
self:SetFocus()
|
||||
-- EditBoxSetCursorPosition(self, self:GetNumLetters())
|
||||
EditBoxSetCursorPosition(self, self:GetNumLetters())
|
||||
end
|
||||
|
||||
local function OnReceiveDrag() -- EditBox / ScrollFrame
|
||||
@@ -123,7 +123,7 @@ local function OnReceiveDrag() --
|
||||
if not this.hasfocus then
|
||||
this.hasfocus = true
|
||||
editBox:SetFocus()
|
||||
-- EditBoxSetCursorPosition(editBox, editBox:GetNumLetters())
|
||||
EditBoxSetCursorPosition(editBox, editBox:GetNumLetters())
|
||||
end
|
||||
editBox:Insert(info)
|
||||
self.button:Enable()
|
||||
@@ -148,8 +148,8 @@ end
|
||||
|
||||
local function OnTextSet() -- EditBox
|
||||
this:HighlightText(0, 0)
|
||||
-- EditBoxSetCursorPosition(this, this:GetNumLetters())
|
||||
-- EditBoxSetCursorPosition(this, 0)
|
||||
EditBoxSetCursorPosition(this, this:GetNumLetters())
|
||||
EditBoxSetCursorPosition(this, 0)
|
||||
this.obj.button:Disable()
|
||||
end
|
||||
|
||||
@@ -270,11 +270,11 @@ local methods = {
|
||||
end,
|
||||
|
||||
["GetCursorPosition"] = function(self)
|
||||
--return EditBoxGetCursorPosition(self.editBox)
|
||||
return EditBoxGetCursorPosition(self.editBox)
|
||||
end,
|
||||
|
||||
["SetCursorPosition"] = function(self, pos)
|
||||
--return EditBoxSetCursorPosition(self.editBox, pos)
|
||||
return EditBoxSetCursorPosition(self.editBox, pos)
|
||||
end,
|
||||
|
||||
["OnWidthSet"] = function(self, width)
|
||||
|
||||
Reference in New Issue
Block a user