Index: third_party/google_input_tools/src/chrome/os/inputview/config/compact_numberpad_characters.js |
diff --git a/third_party/google_input_tools/src/chrome/os/inputview/config/compact_numberpad_characters.js b/third_party/google_input_tools/src/chrome/os/inputview/config/compact_numberpad_characters.js |
index 61cb7fc4e3da28dead0fad259be8f8301d49ec7f..ed020cfa32c110bc3bf19e6edccf2d7b4847348d 100644 |
--- a/third_party/google_input_tools/src/chrome/os/inputview/config/compact_numberpad_characters.js |
+++ b/third_party/google_input_tools/src/chrome/os/inputview/config/compact_numberpad_characters.js |
@@ -13,10 +13,12 @@ |
// |
goog.provide('i18n.input.chrome.inputview.content.compact.numberpad'); |
+goog.require('i18n.input.chrome.inputview.Css'); |
goog.require('i18n.input.chrome.inputview.content.constants'); |
goog.scope(function() { |
var NonLetterKeys = i18n.input.chrome.inputview.content.constants.NonLetterKeys; |
+var Css = i18n.input.chrome.inputview.Css; |
/** |
* Generic numberpad keyset characters. |
@@ -64,6 +66,63 @@ i18n.input.chrome.inputview.content.compact.numberpad.keyNumberpadCharacters = |
]; |
}; |
-// TODO(rsadam): Add phone numberpad keyset here. |
+/** |
+ * Phonepad keyset characters. |
+ * |
+ * @return {!Array.<!Object>} |
+ */ |
+i18n.input.chrome.inputview.content.compact.numberpad.keyPhonepadCharacters = |
+ function() { |
+ |
+ return [ |
+ /* 0 */ { 'text': '-', |
+ 'isGrey': true}, |
+ /* 1 */ { 'text': '+', |
+ 'isGrey': true}, |
+ /* 2 */ { 'title' : 'Pause', // i18n_messages.PAUSE |
+ 'text': ',', |
+ 'isGrey': true, |
+ 'textCssClass': Css.FONT_SMALL}, |
+ /* 3 */ { 'text': '1'}, |
+ /* 4 */ { 'text': '2', |
+ 'hintText': 'ABC'}, |
+ /* 5 */ { 'text': '3', |
+ 'hintText': 'DEF'}, |
+ /* 6 */ NonLetterKeys.BACKSPACE, |
+ /* 7 */ { 'text': ',', |
+ 'isGrey': true}, |
+ /* 8 */ { 'text': '.', |
+ 'isGrey': true}, |
+ /* 9 */ { 'title': 'Wait', // i18n_messages.WAIT |
+ 'text': ';', |
+ 'isGrey': true, |
+ 'textCssClass': Css.FONT_SMALL}, |
+ /* 10 */ { 'text': '4', |
+ 'hintText': 'GHI'}, |
+ /* 11 */ { 'text': '5', |
+ 'hintText': 'JKL'}, |
+ /* 12 */ { 'text': '6', |
+ 'hintText': 'MNO'}, |
+ /* 13 */ NonLetterKeys.ENTER, |
+ /* 14 */ { 'text': '(', |
+ 'isGrey': true}, |
+ /* 15 */ { 'text': ')', |
+ 'isGrey': true}, |
+ /* 16 */ { 'text': 'N', |
+ 'isGrey': true}, |
+ /* 17 */ { 'text': '7', |
+ 'hintText': 'PQRS'}, |
+ /* 18 */ { 'text': '8', |
+ 'hintText': 'TUV'}, |
+ /* 19 */ { 'text': '9', |
+ 'hintText': 'WXYZ', |
+ 'marginRightPercent': 0.545454}, |
+ /* 20 */ NonLetterKeys.SPACE, |
+ /* 21 */ { 'text': '*'}, |
+ /* 22 */ { 'text': '0'}, |
+ /* 23 */ { 'text': '#'}, |
+ /* 24 */ NonLetterKeys.HIDE |
+ ]; |
+}; |
}); // goog.scope |