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
ebdd641d
Commit
ebdd641d
authored
10 years ago
by
Jean Chalard
Browse files
Options
Downloads
Patches
Plain Diff
[HW8] Pull up the processed event.
Change-Id: If4baba0af2e88627f22b5e7312948fc3d9c5a25f
parent
60a2cd8a
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/inputlogic/InputLogic.java
+5
-5
5 additions, 5 deletions
.../com/android/inputmethod/latin/inputlogic/InputLogic.java
with
5 additions
and
5 deletions
java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
+
5
−
5
View file @
ebdd641d
...
...
@@ -712,7 +712,8 @@ public final class InputLogic {
*/
private
void
handleNonSeparator
(
final
SettingsValues
settingsValues
,
final
InputTransaction
inputTransaction
)
{
final
int
codePoint
=
inputTransaction
.
mEvent
.
mCodePoint
;
final
Event
processedEvent
=
mWordComposer
.
processEvent
(
inputTransaction
.
mEvent
);
final
int
codePoint
=
processedEvent
.
mCodePoint
;
// TODO: refactor this method to stop flipping isComposingWord around all the time, and
// make it shorter (possibly cut into several pieces). Also factor handleNonSpecialCharacter
// which has the same name as other handle* methods but is not the same.
...
...
@@ -762,7 +763,6 @@ public final class InputLogic {
resetComposingState
(
false
/* alsoResetLastComposedWord */
);
}
if
(
isComposingWord
)
{
final
Event
processedEvent
=
mWordComposer
.
processEvent
(
inputTransaction
.
mEvent
);
mWordComposer
.
applyProcessedEvent
(
processedEvent
);
// If it's the first letter, make note of auto-caps state
if
(
mWordComposer
.
isSingleLetter
())
{
...
...
@@ -772,7 +772,7 @@ public final class InputLogic {
mWordComposer
.
getTypedWord
()),
1
);
}
else
{
final
boolean
swapWeakSpace
=
tryStripSpaceAndReturnWhetherShouldSwapInstead
(
inputTransaction
,
inputTransaction
.
m
Event
.
isSuggestionStripPress
());
inputTransaction
,
processed
Event
.
isSuggestionStripPress
());
if
(
swapWeakSpace
&&
trySwapSwapperAndSpace
(
inputTransaction
))
{
mSpaceState
=
SpaceState
.
WEAK
;
...
...
@@ -903,6 +903,7 @@ public final class InputLogic {
private
void
handleBackspace
(
final
InputTransaction
inputTransaction
,
// TODO: remove this argument, put it into settingsValues
final
int
currentKeyboardScriptId
)
{
final
Event
processedEvent
=
mWordComposer
.
processEvent
(
inputTransaction
.
mEvent
);
mSpaceState
=
SpaceState
.
NONE
;
mDeleteCount
++;
...
...
@@ -914,7 +915,7 @@ public final class InputLogic {
// Then again, even in the case of a key repeat, if the cursor is at start of text, it
// can't go any further back, so we can update right away even if it's a key repeat.
final
int
shiftUpdateKind
=
inputTransaction
.
m
Event
.
isKeyRepeat
()
&&
mConnection
.
getExpectedSelectionStart
()
>
0
processed
Event
.
isKeyRepeat
()
&&
mConnection
.
getExpectedSelectionStart
()
>
0
?
InputTransaction
.
SHIFT_UPDATE_LATER
:
InputTransaction
.
SHIFT_UPDATE_NOW
;
inputTransaction
.
requireShiftUpdate
(
shiftUpdateKind
);
...
...
@@ -934,7 +935,6 @@ public final class InputLogic {
mDictionaryFacilitator
.
removeWordFromPersonalizedDicts
(
rejectedSuggestion
);
}
}
else
{
final
Event
processedEvent
=
mWordComposer
.
processEvent
(
inputTransaction
.
mEvent
);
mWordComposer
.
applyProcessedEvent
(
processedEvent
);
}
if
(
mWordComposer
.
isComposingWord
())
{
...
...
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