Mobile swipe text unpredictable

Using the stock Google Keyboard on Android 4.1+ if you use swipe text to type into codemirror, the editor goes crazy.

Sometimes it will appear, other times the cursor just jumps around, sometimes multiple linefeeds are added before the text.

Interestingly, forcing ‘textarea’ the swipe works correctly - but the old droid backspace bug reappears.

This is a problem since a lot of mobile users use google keyboard and touchpal with swipe enabled.

Chris

Also a lot of errors being thrown in Android with newest chrome version.

Behaviour becomes unstable.

Started issue #4346.