When editing text on a mobile keyboard, the edited text is highlighted as if it was being modified in IME mode. It should instead just behave like a regular input, which means we should not enable IME if we're editing on a mobile keyboard.
One possible solution is to ignore the composition events when is_mobile() is true.