Home
last modified time | relevance | path

Searched refs:primaryCode (Results 1 – 3 of 3) sorted by relevance

/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/
DSoftKeyboard.java536 public void onKey(int primaryCode, int[] keyCodes) { in onKey() argument
537 if (isWordSeparator(primaryCode)) { in onKey()
542 sendKey(primaryCode); in onKey()
544 } else if (primaryCode == Keyboard.KEYCODE_DELETE) { in onKey()
546 } else if (primaryCode == Keyboard.KEYCODE_SHIFT) { in onKey()
548 } else if (primaryCode == Keyboard.KEYCODE_CANCEL) { in onKey()
551 } else if (primaryCode == LatinKeyboardView.KEYCODE_LANGUAGE_SWITCH) { in onKey()
554 } else if (primaryCode == LatinKeyboardView.KEYCODE_OPTIONS) { in onKey()
556 } else if (primaryCode == Keyboard.KEYCODE_MODE_CHANGE in onKey()
566 handleCharacter(primaryCode, keyCodes); in onKey()
[all …]
/development/samples/MultiClientInputMethod/src/com/example/android/multiclientinputmethod/
DSoftInputWindow.java132 public void onKey(int primaryCode, int[] keyCodes) { in onStartInput()
134 Log.v(TAG, "onKey clientId=" + clientId + " primaryCode=" + primaryCode in onStartInput()
139 switch (primaryCode) { in onStartInput()
156 handleCharacter(inputConnection, primaryCode, isShifted); in onStartInput()
201 void handleCharacter(InputConnection inputConnection, int primaryCode, boolean isShifted) { in handleCharacter() argument
203 primaryCode = Character.toUpperCase(primaryCode); in handleCharacter()
205 inputConnection.commitText(String.valueOf((char) primaryCode), 1); in handleCharacter()
DNoopKeyboardActionListener.java26 public void onPress(int primaryCode) { in onPress() argument
30 public void onRelease(int primaryCode) { in onRelease() argument
34 public void onKey(int primaryCode, int[] keyCodes) { in onKey() argument