i got 2 different android native field in 1 card and i want field A to have this return key function and field B to have another return key function. Any idea how?
PS: The code to create my field
Code: Select all
on preopencard
mobileControlCreate "input", "fieldA"
mobileControlSet "fieldA", "rect", the rect of graphic "InputRect1"
mobileControlSet "fieldA", "visible", true
mobileControlSet "fieldA", "returnKeyType", next
mobileControlDo "fieldA", "focus" , true
mobileControlCreate "input", "fieldB"
mobileControlSet "fieldB", "rect", the rect of graphic "InputRect2"
mobileControlSet "fieldB", "visible", true
mobileControlSet "fieldB", "returnKeyType", send
mobileControlDo "fieldB", "focus" , true
end preopencard
on InputReturnKey
answer hello
end InputReturnKey