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
c2c9cd82
Commit
c2c9cd82
authored
14 years ago
by
Tadashi G. Takaoka
Committed by
Android (Google) Code Review
14 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Mini keyboard works even while shift is being pressed" into gingerbread
parents
46941882
afb35327
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java
+11
-3
11 additions, 3 deletions
.../com/android/inputmethod/latin/LatinKeyboardBaseView.java
java/src/com/android/inputmethod/latin/PointerTracker.java
+3
-2
3 additions, 2 deletions
java/src/com/android/inputmethod/latin/PointerTracker.java
with
14 additions
and
5 deletions
java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java
+
11
−
3
View file @
c2c9cd82
...
...
@@ -205,6 +205,7 @@ public class LatinKeyboardBaseView extends View implements PointerTracker.UIProx
private
long
mMiniKeyboardPopupTime
;
private
int
[]
mWindowOffset
;
private
final
float
mMiniKeyboardSlideAllowance
;
private
int
mMiniKeyboardTrackerId
;
/** Listener for {@link OnKeyboardActionListener}. */
private
OnKeyboardActionListener
mKeyboardActionListener
;
...
...
@@ -1023,6 +1024,7 @@ public class LatinKeyboardBaseView extends View implements PointerTracker.UIProx
if
(
result
)
{
dismissKeyPreview
();
tracker
.
setAlreadyProcessed
();
mMiniKeyboardTrackerId
=
tracker
.
mPointerId
;
}
return
result
;
}
...
...
@@ -1258,9 +1260,15 @@ public class LatinKeyboardBaseView extends View implements PointerTracker.UIProx
// Needs to be called after the gesture detector gets a turn, as it may have
// displayed the mini keyboard
if
(
mMiniKeyboard
!=
null
)
{
MotionEvent
translated
=
generateMiniKeyboardMotionEvent
(
action
,
x
,
y
,
eventTime
);
mMiniKeyboard
.
onTouchEvent
(
translated
);
translated
.
recycle
();
final
int
miniKeyboardPointerIndex
=
me
.
findPointerIndex
(
mMiniKeyboardTrackerId
);
if
(
miniKeyboardPointerIndex
>=
0
&&
miniKeyboardPointerIndex
<
pointerCount
)
{
final
int
miniKeyboardX
=
(
int
)
me
.
getX
(
miniKeyboardPointerIndex
);
final
int
miniKeyboardY
=
(
int
)
me
.
getY
(
miniKeyboardPointerIndex
);
MotionEvent
translated
=
generateMiniKeyboardMotionEvent
(
action
,
miniKeyboardX
,
miniKeyboardY
,
eventTime
);
mMiniKeyboard
.
onTouchEvent
(
translated
);
translated
.
recycle
();
}
return
true
;
}
...
...
This diff is collapsed.
Click to expand it.
java/src/com/android/inputmethod/latin/PointerTracker.java
+
3
−
2
View file @
c2c9cd82
...
...
@@ -515,7 +515,8 @@ public class PointerTracker {
int
primaryCode
=
key
.
codes
[
0
];
code
=
String
.
format
((
primaryCode
<
0
)
?
"%4d"
:
"0x%02x"
,
primaryCode
);
}
Log
.
d
(
TAG
,
String
.
format
(
"%s [%d] %3d,%3d %3d(%s) %s"
,
title
,
mPointerId
,
x
,
y
,
keyIndex
,
code
,
isModifier
()
?
"modifier"
:
""
));
Log
.
d
(
TAG
,
String
.
format
(
"%s%s[%d] %3d,%3d %3d(%s) %s"
,
title
,
(
mKeyAlreadyProcessed
?
"-"
:
" "
),
mPointerId
,
x
,
y
,
keyIndex
,
code
,
(
isModifier
()
?
"modifier"
:
""
)));
}
}
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