From c29ef3ec1553b30f5e6ad4ba21e505c09e019421 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Wed, 8 Sep 2010 16:51:50 +0900 Subject: [PATCH] Remove unnecessary android:codes attribute If there is no android:codes specified, the first character of keyLabel's code point will be used instead. Also introduce readable codes as @integer/key_XXX resources Bug: 2973749 Change-Id: If9021ca35f9a7b922817e2099186fce0cd993652 --- java/res/values/keycodes.xml | 6 +++ java/res/xml-da/kbd_qwerty.xml | 62 ++++++++------------------- java/res/xml-da/kbd_qwerty_black.xml | 64 ++++++++-------------------- java/res/xml-de/kbd_qwerty.xml | 61 +++++++------------------- java/res/xml-de/kbd_qwerty_black.xml | 61 +++++++------------------- java/res/xml-fr/kbd_qwerty.xml | 62 ++++++++------------------- java/res/xml-fr/kbd_qwerty_black.xml | 64 ++++++++-------------------- java/res/xml-iw/kbd_qwerty.xml | 34 +++++++-------- java/res/xml-iw/kbd_qwerty_black.xml | 36 ++++++++-------- java/res/xml-nb/kbd_qwerty.xml | 62 ++++++++------------------- java/res/xml-nb/kbd_qwerty_black.xml | 64 ++++++++-------------------- java/res/xml-ru/kbd_qwerty.xml | 36 ++++++++-------- java/res/xml-ru/kbd_qwerty_black.xml | 38 ++++++++--------- java/res/xml-sr/kbd_qwerty.xml | 36 ++++++++-------- java/res/xml-sr/kbd_qwerty_black.xml | 38 ++++++++--------- java/res/xml-sv/kbd_qwerty.xml | 62 ++++++++------------------- java/res/xml-sv/kbd_qwerty_black.xml | 64 ++++++++-------------------- java/res/xml/kbd_qwerty.xml | 62 ++++++++------------------- java/res/xml/kbd_qwerty_black.xml | 64 ++++++++-------------------- 19 files changed, 316 insertions(+), 660 deletions(-) mode change 100755 => 100644 java/res/xml-de/kbd_qwerty.xml mode change 100755 => 100644 java/res/xml-de/kbd_qwerty_black.xml mode change 100755 => 100644 java/res/xml-iw/kbd_qwerty.xml mode change 100755 => 100644 java/res/xml-iw/kbd_qwerty_black.xml mode change 100755 => 100644 java/res/xml-ru/kbd_qwerty.xml mode change 100755 => 100644 java/res/xml-ru/kbd_qwerty_black.xml mode change 100755 => 100644 java/res/xml/kbd_qwerty.xml mode change 100755 => 100644 java/res/xml/kbd_qwerty_black.xml diff --git a/java/res/values/keycodes.xml b/java/res/values/keycodes.xml index 3f03dd665..9dded508a 100644 --- a/java/res/values/keycodes.xml +++ b/java/res/values/keycodes.xml @@ -19,6 +19,12 @@ --> + 9 + 10 + 32 + -1 + -2 + -5 -100 -103 diff --git a/java/res/xml-da/kbd_qwerty.xml b/java/res/xml-da/kbd_qwerty.xml index 04481e17b..3bbd55251 100644 --- a/java/res/xml-da/kbd_qwerty.xml +++ b/java/res/xml-da/kbd_qwerty.xml @@ -33,50 +33,40 @@ > @@ -136,7 +117,7 @@ android:keyWidth="10%p" > @@ -136,7 +117,7 @@ android:keyWidth="10%p" > @@ -200,18 +174,17 @@ android:iconPreview="@drawable/sym_keyboard_feedback_mic" android:keyWidth="10%p" /> @@ -235,7 +208,7 @@ android:keyLabel="/" android:keyWidth="10%p" /> @@ -268,7 +241,7 @@ @@ -303,13 +276,12 @@ android:iconPreview="@drawable/sym_keyboard_feedback_mic" android:keyWidth="10%p" /> @@ -325,7 +297,7 @@ android:rowEdgeFlags="bottom" > @@ -340,13 +312,13 @@ android:iconPreview="@drawable/sym_keyboard_feedback_mic" android:keyWidth="10%p" /> @@ -355,10 +327,10 @@ android:popupKeyboard="@xml/popup_punctuation" android:keyWidth="10%p" /> - \ No newline at end of file + diff --git a/java/res/xml-de/kbd_qwerty.xml b/java/res/xml-de/kbd_qwerty.xml old mode 100755 new mode 100644 index 8829b535e..f03683c77 --- a/java/res/xml-de/kbd_qwerty.xml +++ b/java/res/xml-de/kbd_qwerty.xml @@ -27,85 +27,66 @@ > @@ -167,18 +141,17 @@ android:iconPreview="@drawable/sym_keyboard_feedback_mic" android:keyWidth="10%p" /> @@ -202,7 +175,7 @@ android:keyLabel="/" android:keyWidth="10%p" /> @@ -235,7 +208,7 @@ @@ -270,13 +243,12 @@ android:iconPreview="@drawable/sym_keyboard_feedback_mic" android:keyWidth="10%p" /> @@ -292,7 +264,7 @@ android:rowEdgeFlags="bottom" > @@ -307,13 +279,12 @@ android:iconPreview="@drawable/sym_keyboard_feedback_mic" android:keyWidth="10%p" /> @@ -322,7 +293,7 @@ android:popupKeyboard="@xml/popup_punctuation" android:keyWidth="10%p" /> @@ -142,7 +116,7 @@ @@ -142,7 +116,7 @@ @@ -169,18 +143,17 @@ android:iconPreview="@drawable/sym_keyboard_feedback_mic" android:keyWidth="10%p" /> @@ -204,7 +177,7 @@ android:keyLabel="/" android:keyWidth="10%p" /> @@ -237,7 +210,7 @@ @@ -272,13 +245,12 @@ android:iconPreview="@drawable/sym_keyboard_feedback_mic" android:keyWidth="10%p" /> @@ -294,7 +266,7 @@ android:rowEdgeFlags="bottom" > @@ -309,13 +281,13 @@ android:iconPreview="@drawable/sym_keyboard_feedback_mic" android:keyWidth="10%p" /> @@ -324,10 +296,10 @@ android:popupKeyboard="@xml/popup_punctuation" android:keyWidth="10%p" /> - \ No newline at end of file + diff --git a/java/res/xml-iw/kbd_qwerty.xml b/java/res/xml-iw/kbd_qwerty.xml old mode 100755 new mode 100644 index 20e59417a..c8b5f4b13 --- a/java/res/xml-iw/kbd_qwerty.xml +++ b/java/res/xml-iw/kbd_qwerty.xml @@ -45,7 +45,7 @@ @@ -120,18 +120,17 @@ android:iconPreview="@drawable/sym_keyboard_feedback_mic" android:keyWidth="10%p" /> @@ -155,7 +154,7 @@ android:keyLabel="/" android:keyWidth="10%p" /> @@ -188,7 +187,7 @@ @@ -223,13 +222,12 @@ android:iconPreview="@drawable/sym_keyboard_feedback_mic" android:keyWidth="10%p" /> @@ -245,7 +243,7 @@ android:rowEdgeFlags="bottom" > @@ -260,13 +258,13 @@ android:iconPreview="@drawable/sym_keyboard_feedback_mic" android:keyWidth="10%p" /> @@ -275,10 +273,10 @@ android:popupKeyboard="@xml/popup_punctuation" android:keyWidth="10%p" /> - \ No newline at end of file + diff --git a/java/res/xml-nb/kbd_qwerty.xml b/java/res/xml-nb/kbd_qwerty.xml index e4bcc142d..36c7b7cce 100644 --- a/java/res/xml-nb/kbd_qwerty.xml +++ b/java/res/xml-nb/kbd_qwerty.xml @@ -33,50 +33,40 @@ > @@ -134,7 +115,7 @@ android:keyWidth="10%p" > @@ -134,7 +115,7 @@ android:keyWidth="10%p" > @@ -198,18 +172,17 @@ android:iconPreview="@drawable/sym_keyboard_feedback_mic" android:keyWidth="10%p" /> @@ -233,7 +206,7 @@ android:keyLabel="/" android:keyWidth="10%p" /> @@ -266,7 +239,7 @@ @@ -301,13 +274,12 @@ android:iconPreview="@drawable/sym_keyboard_feedback_mic" android:keyWidth="10%p" /> @@ -323,7 +295,7 @@ android:rowEdgeFlags="bottom" > @@ -338,13 +310,13 @@ android:iconPreview="@drawable/sym_keyboard_feedback_mic" android:keyWidth="10%p" /> @@ -353,10 +325,10 @@ android:popupKeyboard="@xml/popup_punctuation" android:keyWidth="10%p" /> - \ No newline at end of file + diff --git a/java/res/xml-ru/kbd_qwerty.xml b/java/res/xml-ru/kbd_qwerty.xml old mode 100755 new mode 100644 index 27a615787..742dee24c --- a/java/res/xml-ru/kbd_qwerty.xml +++ b/java/res/xml-ru/kbd_qwerty.xml @@ -87,7 +87,7 @@ android:keyWidth="8.5%p" > @@ -142,18 +142,17 @@ android:iconPreview="@drawable/sym_keyboard_feedback_mic" android:keyWidth="10%p" /> @@ -177,7 +176,7 @@ android:keyLabel="/" android:keyWidth="10%p" /> @@ -210,7 +209,7 @@ @@ -245,13 +244,12 @@ android:iconPreview="@drawable/sym_keyboard_feedback_mic" android:keyWidth="10%p" /> @@ -267,7 +265,7 @@ android:rowEdgeFlags="bottom" > @@ -282,13 +280,13 @@ android:iconPreview="@drawable/sym_keyboard_feedback_mic" android:keyWidth="10%p" /> @@ -297,10 +295,10 @@ android:popupKeyboard="@xml/popup_punctuation" android:keyWidth="10%p" /> - \ No newline at end of file + diff --git a/java/res/xml-sr/kbd_qwerty.xml b/java/res/xml-sr/kbd_qwerty.xml index 412fb2eec..351950d38 100644 --- a/java/res/xml-sr/kbd_qwerty.xml +++ b/java/res/xml-sr/kbd_qwerty.xml @@ -84,7 +84,7 @@ android:keyWidth="8.5%p" > @@ -133,18 +133,17 @@ android:iconPreview="@drawable/sym_keyboard_feedback_mic" android:keyWidth="10%p" /> @@ -168,7 +167,7 @@ android:keyLabel="/" android:keyWidth="10%p" /> @@ -201,7 +200,7 @@ @@ -236,13 +235,12 @@ android:iconPreview="@drawable/sym_keyboard_feedback_mic" android:keyWidth="10%p" /> @@ -258,7 +256,7 @@ android:rowEdgeFlags="bottom" > @@ -273,13 +271,13 @@ android:iconPreview="@drawable/sym_keyboard_feedback_mic" android:keyWidth="10%p" /> @@ -288,10 +286,10 @@ android:popupKeyboard="@xml/popup_punctuation" android:keyWidth="10%p" /> - \ No newline at end of file + diff --git a/java/res/xml-sv/kbd_qwerty.xml b/java/res/xml-sv/kbd_qwerty.xml index 34063f94e..3c90e3163 100644 --- a/java/res/xml-sv/kbd_qwerty.xml +++ b/java/res/xml-sv/kbd_qwerty.xml @@ -35,50 +35,40 @@ > @@ -138,7 +119,7 @@ android:keyWidth="10%p" > @@ -138,7 +119,7 @@ android:keyWidth="10%p" > @@ -202,18 +176,17 @@ android:iconPreview="@drawable/sym_keyboard_feedback_mic" android:keyWidth="10%p" /> @@ -237,7 +210,7 @@ android:keyLabel="/" android:keyWidth="10%p" /> @@ -270,7 +243,7 @@ @@ -305,13 +278,12 @@ android:iconPreview="@drawable/sym_keyboard_feedback_mic" android:keyWidth="10%p" /> @@ -327,7 +299,7 @@ android:rowEdgeFlags="bottom" > @@ -342,13 +314,13 @@ android:iconPreview="@drawable/sym_keyboard_feedback_mic" android:keyWidth="10%p" /> @@ -357,10 +329,10 @@ android:popupKeyboard="@xml/popup_punctuation" android:keyWidth="10%p" /> - \ No newline at end of file + diff --git a/java/res/xml/kbd_qwerty.xml b/java/res/xml/kbd_qwerty.xml old mode 100755 new mode 100644 index 5580b2b57..48a93adf2 --- a/java/res/xml/kbd_qwerty.xml +++ b/java/res/xml/kbd_qwerty.xml @@ -30,53 +30,43 @@ > @@ -185,18 +159,17 @@ android:iconPreview="@drawable/sym_keyboard_feedback_mic" android:keyWidth="10%p" /> @@ -220,7 +193,7 @@ android:keyLabel="/" android:keyWidth="10%p" /> @@ -253,7 +226,7 @@ @@ -288,13 +261,12 @@ android:iconPreview="@drawable/sym_keyboard_feedback_mic" android:keyWidth="10%p" /> @@ -310,7 +282,7 @@ android:rowEdgeFlags="bottom" > @@ -325,13 +297,13 @@ android:iconPreview="@drawable/sym_keyboard_feedback_mic" android:keyWidth="10%p" /> @@ -340,10 +312,10 @@ android:popupKeyboard="@xml/popup_punctuation" android:keyWidth="10%p" /> - \ No newline at end of file +