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
48b96a6a
Commit
48b96a6a
authored
10 years ago
by
Tadashi G. Takaoka
Browse files
Options
Downloads
Patches
Plain Diff
Fix TalkBack descriptions of keyboard shift mode transition
Bug: 14846348 Change-Id: I32435a31f919974a506e598d1f3cc1b55a0866ae
parent
402e8474
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/src/com/android/inputmethod/accessibility/MainKeyboardAccessibilityDelegate.java
+14
-0
14 additions, 0 deletions
...thod/accessibility/MainKeyboardAccessibilityDelegate.java
with
14 additions
and
0 deletions
java/src/com/android/inputmethod/accessibility/MainKeyboardAccessibilityDelegate.java
+
14
−
0
View file @
48b96a6a
...
...
@@ -156,14 +156,28 @@ public final class MainKeyboardAccessibilityDelegate
case
KeyboardId
.
ELEMENT_ALPHABET
:
if
(
lastElementId
==
KeyboardId
.
ELEMENT_ALPHABET
||
lastElementId
==
KeyboardId
.
ELEMENT_ALPHABET_AUTOMATIC_SHIFTED
)
{
// Transition between alphabet mode and automatic shifted mode should be silently
// ignored because it can be determined by each key's talk back announce.
return
;
}
resId
=
R
.
string
.
spoken_description_mode_alpha
;
break
;
case
KeyboardId
.
ELEMENT_ALPHABET_MANUAL_SHIFTED
:
if
(
lastElementId
==
KeyboardId
.
ELEMENT_ALPHABET_AUTOMATIC_SHIFTED
)
{
// Resetting automatic shifted mode by pressing the shift key causes the transition
// from automatic shifted to manual shifted that should be silently ignored.
return
;
}
resId
=
R
.
string
.
spoken_description_shiftmode_on
;
break
;
case
KeyboardId
.
ELEMENT_ALPHABET_SHIFT_LOCK_SHIFTED
:
if
(
lastElementId
==
KeyboardId
.
ELEMENT_ALPHABET_SHIFT_LOCKED
)
{
// Resetting caps locked mode by pressing the shift key causes the transition
// from shift locked to shift lock shifted that should be silently ignored.
return
;
}
resId
=
R
.
string
.
spoken_description_shiftmode_locked
;
break
;
case
KeyboardId
.
ELEMENT_ALPHABET_SHIFT_LOCKED
:
resId
=
R
.
string
.
spoken_description_shiftmode_locked
;
break
;
...
...
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