Tab through inputs with custom button

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
doobox
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 284
Joined: Tue May 24, 2011 11:47 pm

Tab through inputs with custom button

Post by doobox » Sat Oct 29, 2011 11:09 am

Hi all,

I would like to use the decimal keypad for 5 text inputs in the card.
As there is no next option in the keypad, i decided it would be best to create a custom next button.
But i cant figure out the best way to make this work.

In my minds eye, the easiest solution would be to simulate a tab key press in the button handler. But i cant find a command for that.
My second thought was a switch block, determining which input currently has the focus, and move the focus accordingly. But i cant find a way to detect which object currently has the focus.
Kind Regards
Gary

https://www.doobox.co.uk

gpb01
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Sat Jun 04, 2011 5:41 pm

Re: Tab through inputs with custom button

Post by gpb01 » Sat Oct 29, 2011 11:46 am

Hi,
have you looked in the dictionary ?

focusedObject() : Returns the currently focused control. :)

Guglielmo

Post Reply