Merge pull request #122 from berghton/patch-1

Check if editable when entering text
This commit is contained in:
Kenny Shields 2014-05-06 20:20:17 -04:00
commit 24a4b9f798

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