Rewrite event handling of TextField & TextArea