Skip to content
Snippets Groups Projects
Commit 72f1716e authored by Jim Chen's avatar Jim Chen
Browse files

Bug 811755 - Synchronize selection when selection changes due to events; r=cpeterson

parent bdbd9734
No related branches found
No related tags found
No related merge requests found
......@@ -534,6 +534,15 @@ final class GeckoEditable
}
final int seqnoWhenPosted = ++mGeckoUpdateSeqno;
/* An event (keypress, etc.) has potentially changed the selection,
synchronize the selection here. There is not a race with the UI thread
because the UI thread should be blocked on the event action */
if (!mActionQueue.isEmpty() &&
mActionQueue.peek().mType == Action.TYPE_EVENT) {
Selection.setSelection(mText, start, end);
return;
}
geckoPostToUI(new Runnable() {
public void run() {
mActionQueue.syncWithGecko();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment