add auto_indent feature
Merge pull request #1174 from kived/textinput-auto_indent

add auto_indent feature