Skip to content

Commit e389706

Browse files
committed
added :getText() to Text Field
1 parent f005365 commit e389706

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

gooi/gooi.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,14 @@ function gooi.newText(params)
793793
return self
794794
end
795795

796+
function f:getText()
797+
local text = ""
798+
for i = 1, #self.letters do
799+
text = text..self.letters[i].char
800+
end
801+
return text
802+
end
803+
796804
function f:specialKey(k)
797805
return k == gooi.bs or
798806
k == gooi.del or

0 commit comments

Comments
 (0)