Comment 8 for bug 1375900

Revision history for this message
Olivier Tilloy (osomon) wrote :

If I type the following in a contenteditable div: "hey \nH" then press space, I see RenderWidgetHostView::SelectionChanged() being called with text = "hey ", offset = 0 and range = {5,5}.
At this point the range is invalid because text.length() is 4, and trying to get a substring of it at index 5 throws a std::out_of_range exception.

I’m wondering whether the input method may be incorrectly eating the linefeed (\n) character.
By the way the behaviour of the OSK looks incorrect to me in this case: when pressing space, shouldn’t the current word suggestion be validated? Instead, it’s entirely deleted. I’m not seeing that happen in e.g. the messaging app, so it might be an issue in oxide (adding an ubuntu-keyboard task just in case).