dunbarx wrote: ↑Tue Apr 14, 2026 4:48 pm
Bernd.
If Trevix is only interested in being able to trap a message and call a handler, I would say your suggestion is valid. But his original post seems to indicate that the parameter "pKeyName" is required for each separate filter operation to work properly.
I could be wrong.
Trevix?
Craig
You stand correct.
Beside, mobileControlSet tControl, "text, myText, on Android put the insertion point at the beginning of the mobile field...and this for every key press!
The only filtering I could do is like @Bernd suggested.
Code: Select all
on inputTextChanged
-- -- # handle the inputTextChanged message
if the platform = "iphone" then --on android put the cursor at the beginning,no matter what
put mobileControlGet(sControlID, "text") into tText
put word 1 to -1 of tText into tText ----delete spaces before and after
if the number of chars of tText > 12 then
put char 1 to 12 of tText into tText
mobileControlSet sControlID, "text", tText
Play (gPrefTF["AllPath"]["SoundsPath"] & "bozo1.wav")
end if
end if
end inputTextChanged
But this is a long way from "filtering".
Yes, I could check for every single char if is correct, but only on iOS.
About Android, I filed a long time ago a bug report (BUG 24055 confirmed by Panos on 2022(!!!), but it wasn't solved.
Somebody said, if I remember well, that the problem was on Android not LC. But I doubt it.