Page 1 of 1

recognising keyup and keydown events perfectly on ios ipad

Posted: Fri Apr 04, 2014 5:32 am
by RajaRamesh
HI guys,
Iam trying to recognise keyup and keydown events exactly on ipad.In my livecode ios application, i have a textbox field.
when i select that textbox field , virtual keyboard is opens up in ipad.on that virtual keyboard, i have to recognise the events of keyPress(holding), and key released.
I have placed a label there, to see the status of keyup and keydown events.
When i press and hold a button on virtual keyboard, lable wont change, if i released that button label is changing to keyup and keydown status.
i have recognise exactly when it is holded, and released.

Thanks,
Ramesh

Re: recognising keyup and keydown events perfectly on ios ip

Posted: Fri Apr 04, 2014 7:24 am
by Mark
Hi,

I'm not sure that this is possible. The iOS keyboard notifies the active app of the keyboard event after the user releases the key. That's how it is made possible to choose characters from the popup menu, which appears if the user holds the key a little longer.

Kind regards,

Mark

Re: recognising keyup and keydown events perfectly on ios ip

Posted: Fri Apr 04, 2014 10:30 am
by RajaRamesh
Hi Mark,
Can u suggest me any alternative way to achieve this..

Thanks,
Ramesh

Re: recognising keyup and keydown events perfectly on ios ip

Posted: Fri Apr 04, 2014 11:01 am
by Mark
Hi Ramesh,

You could make your own emulated keyboard, but that's a lot of work.

Kind regards,

Mark