mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-26 05:14:21 +00:00
Merge pull request #122 from berghton/patch-1
Check if editable when entering text
This commit is contained in:
commit
24a4b9f798
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user