From 6fe59ed15d536d8d662ce659f9f8cbb8ee757150 Mon Sep 17 00:00:00 2001 From: berghton Date: Wed, 7 May 2014 01:36:02 +0200 Subject: [PATCH] Check if editable when entering text --- objects/textinput.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/objects/textinput.lua b/objects/textinput.lua index 243f641..f1dfa42 100644 --- a/objects/textinput.lua +++ b/objects/textinput.lua @@ -746,6 +746,9 @@ function newobject:RunKey(key, istext) self:MoveIndicator(#self.tabreplacement) end else + if not editable then + return + end -- do not continue if the text limit has been reached or exceeded if #text >= self.limit and self.limit ~= 0 and not alltextselected then return @@ -1999,4 +2002,4 @@ function newobject:GetPlaceholderText() return self.placeholder -end \ No newline at end of file +end