Code example for KeyboardView

Methods: handleBack

0
			// The InputMethodService already takes care of the back 
			// key for us, to dismiss the input method if it is shown. 
			// However, our keyboard could be showing a pop-up window 
			// that back should dismiss, so we first allow it to do that. 
			if (event.getRepeatCount() == 0 && mInputView != null) {
				if (mInputView.handleBack()) {
					return true; 
				} 
			} 
			break; 
 
		case KeyEvent.KEYCODE_DEL:
			break; 
 
		case KeyEvent.KEYCODE_ENTER:
			// Let the underlying text editor always handle these. 
			return false; 
			 
//		case KeyEvent.k 
		case KeyEvent.KEYCODE_VOLUME_DOWN:
			volDownPressed = true;