Merge "Cleanup qwerty expected layout definition a bit"

main
Tadashi G. Takaoka 2014-03-14 11:02:05 +00:00 committed by Android (Google) Code Review
commit e5c0e90221
1 changed files with 11 additions and 11 deletions

View File

@ -36,17 +36,17 @@ public final class Qwerty extends LayoutBase {
ExpectedKey[][] getCommonAlphabetLayout(final boolean isPhone) { return ALPHABET_COMMON; } ExpectedKey[][] getCommonAlphabetLayout(final boolean isPhone) { return ALPHABET_COMMON; }
private static final ExpectedKey[][] ALPHABET_COMMON = new ExpectedKeyboardBuilder() private static final ExpectedKey[][] ALPHABET_COMMON = new ExpectedKeyboardBuilder()
.setLabelsOfRow(1, "q", "w", "e", "r", "t", "y", "u", "i", "o", "p") .setKeysOfRow(1,
.setMoreKeysOf("q", "1") key("q", moreKey("1")),
.setMoreKeysOf("w", "2") key("w", moreKey("2")),
.setMoreKeysOf("e", "3") key("e", moreKey("3")),
.setMoreKeysOf("r", "4") key("r", moreKey("4")),
.setMoreKeysOf("t", "5") key("t", moreKey("5")),
.setMoreKeysOf("y", "6") key("y", moreKey("6")),
.setMoreKeysOf("u", "7") key("u", moreKey("7")),
.setMoreKeysOf("i", "8") key("i", moreKey("8")),
.setMoreKeysOf("o", "9") key("o", moreKey("9")),
.setMoreKeysOf("p", "0") key("p", moreKey("0")))
.setLabelsOfRow(2, "a", "s", "d", "f", "g", "h", "j", "k", "l") .setLabelsOfRow(2, "a", "s", "d", "f", "g", "h", "j", "k", "l")
.setLabelsOfRow(3, "z", "x", "c", "v", "b", "n", "m") .setLabelsOfRow(3, "z", "x", "c", "v", "b", "n", "m")
.build(); .build();