Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor Browser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tommy Webb
Tor Browser
Commits
72f1716e
Commit
72f1716e
authored
12 years ago
by
Jim Chen
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mobile/android/base/GeckoEditable.java
+9
-0
9 additions, 0 deletions
mobile/android/base/GeckoEditable.java
with
9 additions
and
0 deletions
mobile/android/base/GeckoEditable.java
+
9
−
0
View file @
72f1716e
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment