mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-18 16:04:22 +00:00
Check if editable when entering text
This commit is contained in:
parent
a70de4136a
commit
6fe59ed15d
@ -746,6 +746,9 @@ function newobject:RunKey(key, istext)
|
|||||||
self:MoveIndicator(#self.tabreplacement)
|
self:MoveIndicator(#self.tabreplacement)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
if not editable then
|
||||||
|
return
|
||||||
|
end
|
||||||
-- do not continue if the text limit has been reached or exceeded
|
-- do not continue if the text limit has been reached or exceeded
|
||||||
if #text >= self.limit and self.limit ~= 0 and not alltextselected then
|
if #text >= self.limit and self.limit ~= 0 and not alltextselected then
|
||||||
return
|
return
|
||||||
@ -1999,4 +2002,4 @@ function newobject:GetPlaceholderText()
|
|||||||
|
|
||||||
return self.placeholder
|
return self.placeholder
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user