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
9a2039d9
Commit
9a2039d9
authored
12 years ago
by
Tadashi G. Takaoka
Browse files
Options
Downloads
Patches
Plain Diff
Fix RTL language key code mapping
Bug: 8168899 Bug: 8169343 Change-Id: I23120704e97d89d5ddec2b2bdff2a98a6daac4d5
parent
0b491917
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/internal/KeyboardCodesSet.java
+5
-0
5 additions, 0 deletions
...droid/inputmethod/keyboard/internal/KeyboardCodesSet.java
with
5 additions
and
0 deletions
java/src/com/android/inputmethod/keyboard/internal/KeyboardCodesSet.java
+
5
−
0
View file @
9a2039d9
...
@@ -74,6 +74,7 @@ public final class KeyboardCodesSet {
...
@@ -74,6 +74,7 @@ public final class KeyboardCodesSet {
private
static
final
int
CODE_LEFT_CURLY_BRACKET
=
'{'
;
private
static
final
int
CODE_LEFT_CURLY_BRACKET
=
'{'
;
private
static
final
int
CODE_RIGHT_CURLY_BRACKET
=
'}'
;
private
static
final
int
CODE_RIGHT_CURLY_BRACKET
=
'}'
;
// This array should be aligned with the array RTL below.
private
static
final
int
[]
DEFAULT
=
{
private
static
final
int
[]
DEFAULT
=
{
Constants
.
CODE_TAB
,
Constants
.
CODE_TAB
,
Constants
.
CODE_ENTER
,
Constants
.
CODE_ENTER
,
...
@@ -117,6 +118,7 @@ public final class KeyboardCodesSet {
...
@@ -117,6 +118,7 @@ public final class KeyboardCodesSet {
DEFAULT
[
12
],
DEFAULT
[
12
],
DEFAULT
[
13
],
DEFAULT
[
13
],
DEFAULT
[
14
],
DEFAULT
[
14
],
DEFAULT
[
15
],
CODE_RIGHT_PARENTHESIS
,
CODE_RIGHT_PARENTHESIS
,
CODE_LEFT_PARENTHESIS
,
CODE_LEFT_PARENTHESIS
,
CODE_GREATER_THAN_SIGN
,
CODE_GREATER_THAN_SIGN
,
...
@@ -140,6 +142,9 @@ public final class KeyboardCodesSet {
...
@@ -140,6 +142,9 @@ public final class KeyboardCodesSet {
};
};
static
{
static
{
if
(
DEFAULT
.
length
!=
RTL
.
length
)
{
throw
new
RuntimeException
(
"Internal inconsistency"
);
}
for
(
int
i
=
0
;
i
<
ID_TO_NAME
.
length
;
i
++)
{
for
(
int
i
=
0
;
i
<
ID_TO_NAME
.
length
;
i
++)
{
sNameToIdMap
.
put
(
ID_TO_NAME
[
i
],
i
);
sNameToIdMap
.
put
(
ID_TO_NAME
[
i
],
i
);
}
}
...
...
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