mirror of
https://github.com/Insality/druid.git
synced 2025-06-27 10:27:47 +02:00
Merge pull request #166 from SalavatR/patch-1
This commit is contained in:
commit
c12bfe63a5
@ -166,8 +166,8 @@ function Input.on_input(self, action_id, action)
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
-- ignore arrow keys
|
-- ignore arrow keys
|
||||||
if not string.match(hex, "EF9C8[0-3]") then
|
if not utf8.match(hex, "EF9C8[0-3]") then
|
||||||
if not self.allowed_characters or action.text:match(self.allowed_characters) then
|
if not self.allowed_characters or utf8.match(action.text, self.allowed_characters) then
|
||||||
input_text = self.value .. action.text
|
input_text = self.value .. action.text
|
||||||
if self.max_length then
|
if self.max_length then
|
||||||
input_text = utf8.sub(input_text, 1, self.max_length)
|
input_text = utf8.sub(input_text, 1, self.max_length)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user