Support text selection for iOS port.