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
2b13b4f5
Commit
2b13b4f5
authored
14 years ago
by
Tadashi G. Takaoka
Browse files
Options
Downloads
Patches
Plain Diff
Suppress long press timer on hinted key while temporary upper case mode
Bug: 3301932 Change-Id: I29b5e5a9aa8b44681e763a4d6485109f3f99f6fa
parent
c4f71668
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
+2
-2
2 additions, 2 deletions
java/src/com/android/inputmethod/keyboard/Key.java
java/src/com/android/inputmethod/keyboard/PointerTracker.java
+7
-1
7 additions, 1 deletion
.../src/com/android/inputmethod/keyboard/PointerTracker.java
with
9 additions
and
3 deletions
java/src/com/android/inputmethod/keyboard/Key.java
+
2
−
2
View file @
2b13b4f5
...
...
@@ -144,7 +144,7 @@ public class Key {
mEdgeFlags
=
row
.
mRowEdgeFlags
;
mHintIcon
=
null
;
mManualTemporaryUpperCaseHintIcon
=
null
;
mManualTemporaryUpperCaseCode
=
0
;
mManualTemporaryUpperCaseCode
=
Keyboard
.
CODE_DUMMY
;
mLabelOption
=
0
;
mModifier
=
false
;
mSticky
=
false
;
...
...
@@ -233,7 +233,7 @@ public class Key {
mLabel
=
style
.
getText
(
keyAttr
,
R
.
styleable
.
Keyboard_Key_keyLabel
);
mLabelOption
=
style
.
getFlag
(
keyAttr
,
R
.
styleable
.
Keyboard_Key_keyLabelOption
,
0
);
mManualTemporaryUpperCaseCode
=
style
.
getInt
(
keyAttr
,
R
.
styleable
.
Keyboard_Key_manualTemporaryUpperCaseCode
,
0
);
R
.
styleable
.
Keyboard_Key_manualTemporaryUpperCaseCode
,
Keyboard
.
CODE_DUMMY
);
mOutputText
=
style
.
getText
(
keyAttr
,
R
.
styleable
.
Keyboard_Key_keyOutputText
);
// Choose the first letter of the label as primary code if not
// specified.
...
...
This diff is collapsed.
Click to expand it.
java/src/com/android/inputmethod/keyboard/PointerTracker.java
+
7
−
1
View file @
2b13b4f5
...
...
@@ -414,6 +414,11 @@ public class PointerTracker {
Key
key
=
getKey
(
keyIndex
);
if
(
key
.
mCode
==
Keyboard
.
CODE_SHIFT
)
{
mHandler
.
startLongPressShiftTimer
(
mLongPressShiftKeyTimeout
,
keyIndex
,
this
);
}
else
if
(
key
.
mManualTemporaryUpperCaseCode
!=
Keyboard
.
CODE_DUMMY
&&
mKeyboard
.
isManualTemporaryUpperCase
())
{
// We need not start long press timer on the key which has manual temporary upper case
// code defined and the keyboard is in manual temporary upper case mode.
return
;
}
else
if
(
mKeyboardSwitcher
.
isInMomentaryAutoModeSwitchState
())
{
// We use longer timeout for sliding finger input started from the symbols mode key.
mHandler
.
startLongPressTimer
(
mLongPressKeyTimeout
*
2
,
keyIndex
,
this
);
...
...
@@ -438,7 +443,8 @@ public class PointerTracker {
// If keyboard is in manual temporary upper case state and key has manual temporary
// shift code, alternate character code should be sent.
if
(
mKeyboard
.
isManualTemporaryUpperCase
()
&&
key
.
mManualTemporaryUpperCaseCode
!=
0
)
{
if
(
mKeyboard
.
isManualTemporaryUpperCase
()
&&
key
.
mManualTemporaryUpperCaseCode
!=
Keyboard
.
CODE_DUMMY
)
{
code
=
key
.
mManualTemporaryUpperCaseCode
;
codes
[
0
]
=
code
;
}
...
...
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