Check if editable when entering text

This commit is contained in:
berghton 2014-05-07 01:36:02 +02:00
parent a70de4136a
commit 6fe59ed15d

View File

@ -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