Lines Matching refs:keyEvent
35 import android.view.KeyEvent;
411 onKeyUpEvent(ev.keyEvent);
467 KeyEvent keyEvent = ev.keyEvent;
469 if (keyEvent != null) {
470 keyCode = keyEvent.getKeyCode();
474 mInputConnection.sendKeyEvent(keyEvent);
475 mInputConnection.sendKeyEvent(new KeyEvent(KeyEvent.ACTION_UP,
476 keyEvent.getKeyCode()));
505 keyCode = ev.keyEvent.getKeyCode();
508 case KeyEvent.KEYCODE_ALT_LEFT:
509 case KeyEvent.KEYCODE_ALT_RIGHT:
510 if (ev.keyEvent.getRepeatCount() == 0) {
517 case KeyEvent.KEYCODE_SHIFT_LEFT:
518 case KeyEvent.KEYCODE_SHIFT_RIGHT:
519 if (ev.keyEvent.getRepeatCount() == 0) {
529 ret = processKeyEvent(ev.keyEvent);
536 ret = processKeyEvent(ev.keyEvent);
538 int code = keyEvent.getKeyCode();
539 if (code == KeyEvent.KEYCODE_ENTER || keyCode == KeyEvent.KEYCODE_NUMPAD_ENTER) {
542 mInputConnection.sendKeyEvent(keyEvent);
543 mInputConnection.sendKeyEvent(new KeyEvent(KeyEvent.ACTION_UP, code));
587 * Handling KeyEvent
594 private boolean processKeyEvent(KeyEvent ev) {
633 if (shift != mHardShift && (key >= KeyEvent.KEYCODE_A && key <= KeyEvent.KEYCODE_Z)) {
671 } else if (key == KeyEvent.KEYCODE_SPACE) {
684 } else if (key == KeyEvent.KEYCODE_SYM) {
698 case KeyEvent.KEYCODE_DEL:
703 case KeyEvent.KEYCODE_BACK:
712 case KeyEvent.KEYCODE_DPAD_LEFT:
717 case KeyEvent.KEYCODE_DPAD_RIGHT:
722 case KeyEvent.KEYCODE_ENTER:
723 case KeyEvent.KEYCODE_NUMPAD_ENTER:
724 case KeyEvent.KEYCODE_DPAD_CENTER:
739 if (key == KeyEvent.KEYCODE_BACK) {
749 case KeyEvent.KEYCODE_DPAD_CENTER:
750 case KeyEvent.KEYCODE_ENTER:
751 case KeyEvent.KEYCODE_NUMPAD_ENTER:
758 case KeyEvent.KEYCODE_BACK:
948 * Handling KeyEvent(KEYUP)
954 private void onKeyUpEvent(KeyEvent ev) {
957 if(key == KeyEvent.KEYCODE_SHIFT_LEFT || key == KeyEvent.KEYCODE_SHIFT_RIGHT){
964 if(key == KeyEvent.KEYCODE_ALT_LEFT || key == KeyEvent.KEYCODE_ALT_RIGHT){