Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LatinIME
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
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
keyboard
LatinIME
Commits
c59e3839
Commit
c59e3839
authored
13 years ago
by
satok
Committed by
Android (Google) Code Review
13 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Do not change the proximity orders"
parents
c24f66e1
ef08dadd
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
java/src/com/android/inputmethod/latin/WordComposer.java
+0
-16
0 additions, 16 deletions
java/src/com/android/inputmethod/latin/WordComposer.java
with
0 additions
and
16 deletions
java/src/com/android/inputmethod/latin/WordComposer.java
+
0
−
16
View file @
c59e3839
...
@@ -177,7 +177,6 @@ public class WordComposer {
...
@@ -177,7 +177,6 @@ public class WordComposer {
private
void
add
(
int
primaryCode
,
int
[]
codes
,
int
keyX
,
int
keyY
)
{
private
void
add
(
int
primaryCode
,
int
[]
codes
,
int
keyX
,
int
keyY
)
{
final
int
newIndex
=
mCodes
.
size
();
final
int
newIndex
=
mCodes
.
size
();
mTypedWord
.
appendCodePoint
(
primaryCode
);
mTypedWord
.
appendCodePoint
(
primaryCode
);
correctPrimaryJuxtapos
(
primaryCode
,
codes
);
mCodes
.
add
(
codes
);
mCodes
.
add
(
codes
);
if
(
newIndex
<
BinaryDictionary
.
MAX_WORD_LENGTH
)
{
if
(
newIndex
<
BinaryDictionary
.
MAX_WORD_LENGTH
)
{
mXCoordinates
[
newIndex
]
=
keyX
;
mXCoordinates
[
newIndex
]
=
keyX
;
...
@@ -238,21 +237,6 @@ public class WordComposer {
...
@@ -238,21 +237,6 @@ public class WordComposer {
setComposingWord
(
word
,
keyboard
,
keyDetector
);
setComposingWord
(
word
,
keyboard
,
keyDetector
);
}
}
/**
* Swaps the first and second values in the codes array if the primary code is not the first
* value in the array but the second. This happens when the preferred key is not the key that
* the user released the finger on.
* @param primaryCode the preferred character
* @param codes array of codes based on distance from touch point
*/
private
static
void
correctPrimaryJuxtapos
(
int
primaryCode
,
int
[]
codes
)
{
if
(
codes
.
length
<
2
)
return
;
if
(
codes
[
0
]
>
0
&&
codes
[
1
]
>
0
&&
codes
[
0
]
!=
primaryCode
&&
codes
[
1
]
==
primaryCode
)
{
codes
[
1
]
=
codes
[
0
];
codes
[
0
]
=
primaryCode
;
}
}
/**
/**
* Delete the last keystroke as a result of hitting backspace.
* Delete the last keystroke as a result of hitting backspace.
*/
*/
...
...
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