0
Отвечен

Event item exit?

Jackie Roos 7 лет назад в iRidium Script / AV and Driver scripts обновлен 7 лет назад 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

Отвечен

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

Сервис поддержки клиентов работает на платформе UserEcho