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
9797dd2e
Commit
9797dd2e
authored
11 years ago
by
Tadashi G. Takaoka
Committed by
Android Git Automerger
11 years ago
Browse files
Options
Downloads
Plain Diff
am
2fd4a00b
: am
1ec4c07a
: Merge "Ignore modifier key while sliding key input"
* commit '
2fd4a00b
': Ignore modifier key while sliding key input
parents
333bb7db
2fd4a00b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/src/com/android/inputmethod/keyboard/PointerTracker.java
+3
-3
3 additions, 3 deletions
.../src/com/android/inputmethod/keyboard/PointerTracker.java
with
3 additions
and
3 deletions
java/src/com/android/inputmethod/keyboard/PointerTracker.java
+
3
−
3
View file @
9797dd2e
...
@@ -444,7 +444,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
...
@@ -444,7 +444,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
if
(
sInGesture
||
mIsDetectingGesture
)
{
if
(
sInGesture
||
mIsDetectingGesture
)
{
return
false
;
return
false
;
}
}
final
boolean
ignoreModifierKey
=
mIsInSlidingKeyInput
FromModifier
&&
key
.
isModifier
();
final
boolean
ignoreModifierKey
=
mIsInSlidingKeyInput
&&
key
.
isModifier
();
if
(
DEBUG_LISTENER
)
{
if
(
DEBUG_LISTENER
)
{
Log
.
d
(
TAG
,
String
.
format
(
"[%d] onPress : %s%s%s"
,
mPointerId
,
Log
.
d
(
TAG
,
String
.
format
(
"[%d] onPress : %s%s%s"
,
mPointerId
,
KeyDetector
.
printableCode
(
key
),
KeyDetector
.
printableCode
(
key
),
...
@@ -468,7 +468,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
...
@@ -468,7 +468,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
// primaryCode is different from {@link Key#mCode}.
// primaryCode is different from {@link Key#mCode}.
private
void
callListenerOnCodeInput
(
final
Key
key
,
final
int
primaryCode
,
final
int
x
,
private
void
callListenerOnCodeInput
(
final
Key
key
,
final
int
primaryCode
,
final
int
x
,
final
int
y
,
final
long
eventTime
)
{
final
int
y
,
final
long
eventTime
)
{
final
boolean
ignoreModifierKey
=
mIsInSlidingKeyInput
FromModifier
&&
key
.
isModifier
();
final
boolean
ignoreModifierKey
=
mIsInSlidingKeyInput
&&
key
.
isModifier
();
final
boolean
altersCode
=
key
.
altCodeWhileTyping
()
&&
mTimerProxy
.
isTypingState
();
final
boolean
altersCode
=
key
.
altCodeWhileTyping
()
&&
mTimerProxy
.
isTypingState
();
final
int
code
=
altersCode
?
key
.
getAltCode
()
:
primaryCode
;
final
int
code
=
altersCode
?
key
.
getAltCode
()
:
primaryCode
;
if
(
DEBUG_LISTENER
)
{
if
(
DEBUG_LISTENER
)
{
...
@@ -503,7 +503,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
...
@@ -503,7 +503,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
if
(
sInGesture
||
mIsDetectingGesture
)
{
if
(
sInGesture
||
mIsDetectingGesture
)
{
return
;
return
;
}
}
final
boolean
ignoreModifierKey
=
mIsInSlidingKeyInput
FromModifier
&&
key
.
isModifier
();
final
boolean
ignoreModifierKey
=
mIsInSlidingKeyInput
&&
key
.
isModifier
();
if
(
DEBUG_LISTENER
)
{
if
(
DEBUG_LISTENER
)
{
Log
.
d
(
TAG
,
String
.
format
(
"[%d] onRelease : %s%s%s%s"
,
mPointerId
,
Log
.
d
(
TAG
,
String
.
format
(
"[%d] onRelease : %s%s%s%s"
,
mPointerId
,
Constants
.
printableCode
(
primaryCode
),
Constants
.
printableCode
(
primaryCode
),
...
...
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