From 37b9562fd7b593c90d7ab383ec650f39a7c0f621 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Tue, 25 Mar 2014 11:57:41 +0900 Subject: [PATCH] Fix talk back of emoji key Bug: 13629734 Change-Id: Ifff6f81c2ac99a32855cd333b3d9a01ad7155ffc --- java/res/values/strings.xml | 4 ++-- .../inputmethod/accessibility/KeyCodeDescriptionMapper.java | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/java/res/values/strings.xml b/java/res/values/strings.xml index bd18e5544..e38bdd64e 100644 --- a/java/res/values/strings.xml +++ b/java/res/values/strings.xml @@ -192,8 +192,8 @@ Space Voice input - - Smiley face + + Emoji Return diff --git a/java/src/com/android/inputmethod/accessibility/KeyCodeDescriptionMapper.java b/java/src/com/android/inputmethod/accessibility/KeyCodeDescriptionMapper.java index 58624a2e6..2e6649bf2 100644 --- a/java/src/com/android/inputmethod/accessibility/KeyCodeDescriptionMapper.java +++ b/java/src/com/android/inputmethod/accessibility/KeyCodeDescriptionMapper.java @@ -58,9 +58,6 @@ public final class KeyCodeDescriptionMapper { } private void initInternal() { - // Manual label substitutions for key labels with no string resource - mKeyLabelMap.put(":-)", R.string.spoken_description_smiley); - // Special non-character codes defined in Keyboard mKeyCodeMap.put(Constants.CODE_SPACE, R.string.spoken_description_space); mKeyCodeMap.put(Constants.CODE_DELETE, R.string.spoken_description_delete); @@ -75,6 +72,7 @@ public final class KeyCodeDescriptionMapper { mKeyCodeMap.put(Constants.CODE_ACTION_NEXT, R.string.spoken_description_action_next); mKeyCodeMap.put(Constants.CODE_ACTION_PREVIOUS, R.string.spoken_description_action_previous); + mKeyCodeMap.put(Constants.CODE_EMOJI, R.string.spoken_description_emoji); } /**