I'm not sure that I understand the example? Looking at your display file, there is no auto-complete defined on 'field1'. However, you have defined the onselect event for this widget.
The onselect event fires when an option is selected in an autocomplete, combo box or dropdown box... it won't fire at all on a textbox, otherwise.
I'm assuming this isn't the actual display that you're using since your screenshots do show the event firing. My guess from your description is that the focus is being placed back into the textbox after an item is selected. It makes perfect sense if you think about it: Clicking one of the choices with the mouse would cause the focus to be placed on the choice you clicked. (That's normal behavior, a mouse click moves the focus.) So after the item has been clicked, Profound UI has to move the focus back to the text box.
From your tests it seems that's what's happening... after a choice is selected, the onselect event fires. Here you move focus to field3. Then Profound UI gets control again and moves the focus back to input1.
Assuming this guess is right, you could fix the problem by adding a small delay to the focus like this:
Code: Select all
setTimeout(function(){ getObj("field3").focus(); }, 5);
This causes the getObj.focus to run 5ms (means 5/1000 of a second) after the onselect event ends.