Use text change events to save nickname.

This is a possible workaround for issue #112.
Merge pull request #135 from guilherme-pg/issue-112

Use text change events to save nickname.