0
Answered

Event item exit?

Jackie Roos 5 years ago in iRidium Script / AV and Driver scripts updated 5 years ago 2

Hi

Is there an EVENT_ITEM_EXIT or equivalent?


I am currently using EVENT_ITEM_CHANGE for error checking, but I want to send the command once, based on the input, ie when focus leaves the item, not every time the edit box is changed


Or is there an event fired when the keyboard hits 'ENTER' or 'TAB'?


Or what do you suggest please?


thanks

Answered

Hi Jackie


Unfortunatelly, it is not possible to get the Enter event on Item, but we are working on it right now. In v3 you will be able to make something like this:

IR.AddListener(IR.EVENT_ITEM_CHANGE, item, function (action)
{
if (action == "Insert Text") { /* do nothing */ } if (action == "Enter") { driver.Set("Channel", item.Text } });

and focus of EditBox will be switched to the next one automatically by Tab

Hi Ekaterina

Looking forward to V3!

Thanks :)