Adam Barth b7d936fd35 Make iOS keyboard robust to selection of -1
The Dart code uses -1 to signal that there is no current selection. If
we get text input in this state, we need to do something reasonable.
This patch teach us to treat that case as if the selection was zero.

This patch also improves how we convert from NSString to string16 and
makes it so we don't leak keyboard subviews.

Fixes https://github.com/flutter/flutter/issues/1878
2016-02-14 15:15:29 -08:00
..
2016-01-25 20:27:58 -08:00