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
5f857a35
Commit
5f857a35
authored
11 years ago
by
Tadashi G. Takaoka
Committed by
Android (Google) Code Review
11 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Disable functional key while in sliding input mode"
parents
b5f67e7f
e3b1bdc4
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
+7
-4
7 additions, 4 deletions
.../src/com/android/inputmethod/keyboard/PointerTracker.java
with
7 additions
and
4 deletions
java/src/com/android/inputmethod/keyboard/PointerTracker.java
+
7
−
4
View file @
5f857a35
...
@@ -1168,6 +1168,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
...
@@ -1168,6 +1168,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
private
void
onUpEventInternal
(
final
int
x
,
final
int
y
,
final
long
eventTime
)
{
private
void
onUpEventInternal
(
final
int
x
,
final
int
y
,
final
long
eventTime
)
{
mTimerProxy
.
cancelKeyTimers
();
mTimerProxy
.
cancelKeyTimers
();
final
boolean
isInSlidingKeyInput
=
mIsInSlidingKeyInput
;
resetSlidingKeyInput
();
resetSlidingKeyInput
();
mIsDetectingGesture
=
false
;
mIsDetectingGesture
=
false
;
final
Key
currentKey
=
mCurrentKey
;
final
Key
currentKey
=
mCurrentKey
;
...
@@ -1197,9 +1198,11 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
...
@@ -1197,9 +1198,11 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
if
(
mIsTrackingForActionDisabled
)
{
if
(
mIsTrackingForActionDisabled
)
{
return
;
return
;
}
}
if
(
currentKey
!=
null
&&
!
currentKey
.
isRepeatable
())
{
if
(
currentKey
!=
null
&&
currentKey
.
isRepeatable
()
&&
!
isInSlidingKeyInput
)
{
detectAndSendKey
(
currentKey
,
mKeyX
,
mKeyY
,
eventTime
);
// Repeatable key has been registered in {@link #onDownEventInternal(int,int,long)}.
return
;
}
}
detectAndSendKey
(
currentKey
,
mKeyX
,
mKeyY
,
eventTime
);
}
}
public
void
onShowMoreKeysPanel
(
final
int
translatedX
,
final
int
translatedY
,
public
void
onShowMoreKeysPanel
(
final
int
translatedX
,
final
int
translatedY
,
...
@@ -1251,7 +1254,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
...
@@ -1251,7 +1254,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
if
(
key
==
null
)
return
;
if
(
key
==
null
)
return
;
if
(!
key
.
isRepeatable
())
return
;
if
(!
key
.
isRepeatable
())
return
;
// Don't start key repeat when we are in sliding input mode.
// Don't start key repeat when we are in sliding input mode.
if
(
mIsInSlidingKeyInput
FromModifier
)
return
;
if
(
mIsInSlidingKeyInput
)
return
;
onRegisterKey
(
key
);
onRegisterKey
(
key
);
mTimerProxy
.
startKeyRepeatTimer
(
this
);
mTimerProxy
.
startKeyRepeatTimer
(
this
);
}
}
...
@@ -1313,7 +1316,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
...
@@ -1313,7 +1316,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
// doesn't have its more keys. (e.g. spacebar, globe key)
// doesn't have its more keys. (e.g. spacebar, globe key)
// We always need to start the long press timer if the key has its more keys regardless of
// We always need to start the long press timer if the key has its more keys regardless of
// whether or not we are in the sliding input mode.
// whether or not we are in the sliding input mode.
if
(
mIsInSlidingKeyInput
FromModifier
&&
key
.
mMoreKeys
==
null
)
return
;
if
(
mIsInSlidingKeyInput
&&
key
.
mMoreKeys
==
null
)
return
;
mTimerProxy
.
startLongPressTimer
(
this
);
mTimerProxy
.
startLongPressTimer
(
this
);
}
}
...
...
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