recognising keyup and keydown events perfectly on ios ipad

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
RajaRamesh
Posts: 23
Joined: Fri Jan 31, 2014 12:09 pm

recognising keyup and keydown events perfectly on ios ipad

Post by RajaRamesh » Fri Apr 04, 2014 5:32 am

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

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: recognising keyup and keydown events perfectly on ios ip

Post by Mark » Fri Apr 04, 2014 7:24 am

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

RajaRamesh
Posts: 23
Joined: Fri Jan 31, 2014 12:09 pm

Re: recognising keyup and keydown events perfectly on ios ip

Post by RajaRamesh » Fri Apr 04, 2014 10:30 am

Hi Mark,
Can u suggest me any alternative way to achieve this..

Thanks,
Ramesh

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: recognising keyup and keydown events perfectly on ios ip

Post by Mark » Fri Apr 04, 2014 11:01 am

Hi Ramesh,

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

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply