Lines Matching refs:primaryCode
205 public void onKey(int primaryCode, int[] keyCodes) {
206 if (primaryCode == Keyboard.KEYCODE_DELETE) {
208 } else if (primaryCode == Keyboard.KEYCODE_SHIFT) {
210 } else if (primaryCode == Keyboard.KEYCODE_CANCEL) {
213 } else if (primaryCode == Keyboard.KEYCODE_MODE_CHANGE && mKeyboardView != null) {
216 handleCharacter(primaryCode, keyCodes);
295 private void handleCharacter(int primaryCode, int[] keyCodes) {
297 if (mKeyboardView.isShifted() && primaryCode != ' ' && primaryCode != '\n') {
298 primaryCode = Character.toUpperCase(primaryCode);
300 sendKeyEventsToTarget(primaryCode);
307 public void onPress(int primaryCode) {
319 public void onRelease(int primaryCode) {