Forums » Suggestions

Virtual Keyboard should trigger a callback/event

Oct 02, 2022 draugath link
It would be nice if the Virtual Keyboard would trigger an event or callback on textboxes so that input can be evaluated and either modified or rejected. This would allow plugins to have more control over how mobile users interact with their UIs and bring it inline with the existing system.

I recently put a lot of work into verifying text input on a bunch of textboxes only to find out that the Virtual Keyboard completely bypasses it.
Oct 02, 2022 Snib link
If you're saying the iup callbacks for when a textbox value gets modified don't trigger (I didn't check) then that should probably count as a bug and get fixed.
Oct 02, 2022 draugath link
It's not a bug if it directly modifies the .value property of the control, which is what I think is happening here. In my opinion it would be best if it could process the .action callback of the target control with each key press.
Oct 03, 2022 Snib link
Well, I actually tested this now and I get ACTION callbacks just fine when using the virtual keyboard to modify iup.text control values, so I don't think there is actually a problem here to solve?

Tested with both Android and Windows clients.
Oct 03, 2022 draugath link
I'm seeing that now, but it only submits it with a character code of 13 (Enter) and the entire string as typed. There is no way to do per character input verification. This means that the entire string has to be verified in whole, which isn't always desirable.

It would be nice if there was parity between the the platforms in this regard.