Make PTYTextView implement NSTextInputClient. Fixes bug 2928 (chinese punctuation box doesn't show on shift-opt-b with pinyin input method).