Adds support for selection direction on text fields.