1/* 2 * Copyright (C) 2014 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17package com.android.inputmethod.keyboard.layout.customizer; 18 19import com.android.inputmethod.keyboard.layout.expected.ExpectedKey; 20 21import java.util.Locale; 22 23public class PcQwertyCustomizer extends LayoutCustomizer { 24 public PcQwertyCustomizer(final Locale locale) { super(locale); } 25 26 @Override 27 public int getNumberOfRows() { return 5; } 28 29 @Override 30 public ExpectedKey[] getLeftShiftKeys(final boolean isPhone) { 31 return joinKeys(SHIFT_KEY); 32 } 33 34 @Override 35 public ExpectedKey[] getRightShiftKeys(final boolean isPhone) { 36 return joinKeys(SHIFT_KEY); 37 } 38 39 @Override 40 public ExpectedKey[] getKeysLeftToSpacebar(final boolean isPhone) { 41 return joinKeys(SETTINGS_KEY); 42 } 43 44 @Override 45 public ExpectedKey[] getKeysRightToSpacebar(final boolean isPhone) { 46 return isPhone 47 ? joinKeys(key(ENTER_KEY, EMOJI_ACTION_KEY)) 48 : joinKeys(EMOJI_NORMAL_KEY); 49 } 50} 51