The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

emotioner (3) [Avatar] Offline
#1
Hi, there!

I went through the Todo List and I attempted to do one little "enhancement" by myself: clear the currently entered text in "newTaskTI" TextInput when the Enter key is pressed.

private function createTask():void
{
_tasks.addItem(new Task(newTaskTI.text));
newTaskTI.text = "";
}

The problem with this is that the caret is gone once newTaskTI.text was assigned an empty string, while the TextInput is still in focus. So there is no way to continue typing in newTaskTI; you have to re-focus it even though it's still in focus!

Thanks for your time!
emotioner (3) [Avatar] Offline
#2
Re: Todo List example on chapter 1
It turned out to be a bug for the spark TextInput. They just fixed it (3 days after the bug was filed. That was quick for a large company such as Adobesmilie)