Fix performEditorAction to commit autocomplete text in batch edits
The commitAutocomplete logic was assuming that the autocomplete span was present and was trying to commit it, but when between onBeginImeCommand / onEndImeCommand, we have removed the span in onBeginImeCommand(), so there is nothing to commit. We just need to commit the text, which does not interfere with onEndImeCommand() logic. BUG=810704 Change-Id: Iec7928d2154b6f4c4c8c6197293b6c84fde828f5 Reviewed-on: https://chromium-review.googlesource.com/1020064Reviewed-by:Ted Choc <tedchoc@chromium.org> Commit-Queue: Changwan Ryu <changwan@chromium.org> Cr-Commit-Position: refs/heads/master@{#553393}
Showing
Please register or sign in to comment