Added basic text input support.