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
967d6073
Commit
967d6073
authored
13 years ago
by
Tadashi G. Takaoka
Browse files
Options
Downloads
Patches
Plain Diff
Disable popup preview and long press on disabled key
Bug: 4268147 Change-Id: Ibcb54791ef78737dd09d8a594b5a53b0909609d6
parent
b5d17e52
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/keyboard/Key.java
+1
-1
1 addition, 1 deletion
java/src/com/android/inputmethod/keyboard/Key.java
java/src/com/android/inputmethod/keyboard/PointerTracker.java
+5
-0
5 additions, 0 deletions
.../src/com/android/inputmethod/keyboard/PointerTracker.java
with
6 additions
and
1 deletion
java/src/com/android/inputmethod/keyboard/Key.java
+
1
−
1
View file @
967d6073
...
...
@@ -379,7 +379,7 @@ public class Key {
* @see android.graphics.drawable.StateListDrawable#setState(int[])
*/
public
int
[]
getCurrentDrawableState
()
{
final
boolean
pressed
=
mEnabled
&&
mPressed
;
final
boolean
pressed
=
mPressed
;
if
(!
mSticky
&&
mFunctional
)
{
if
(
pressed
)
{
return
KEY_STATE_FUNCTIONAL_PRESSED
;
...
...
This diff is collapsed.
Click to expand it.
java/src/com/android/inputmethod/keyboard/PointerTracker.java
+
5
−
0
View file @
967d6073
...
...
@@ -546,6 +546,9 @@ public class PointerTracker {
}
private
void
showKeyPreviewAndUpdateKeyGraphics
(
int
keyIndex
)
{
final
Key
key
=
getKey
(
keyIndex
);
if
(
key
!=
null
&&
!
key
.
mEnabled
)
return
;
updateKeyGraphics
(
keyIndex
);
// The modifier key, such as shift key, should not be shown as preview when multi-touch is
// supported. On the other hand, if multi-touch is not supported, the modifier key should
...
...
@@ -565,6 +568,8 @@ public class PointerTracker {
return
;
}
Key
key
=
getKey
(
keyIndex
);
if
(!
key
.
mEnabled
)
return
;
if
(
key
.
mCode
==
Keyboard
.
CODE_SHIFT
)
{
mHandler
.
startLongPressShiftTimer
(
mLongPressShiftKeyTimeout
,
keyIndex
,
this
);
}
else
if
(
key
.
mManualTemporaryUpperCaseCode
!=
Keyboard
.
CODE_DUMMY
...
...
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