Code example for KeyboardView

Methods: handleBack

0
    @Override 
    public boolean onKeyDown(int keyCode, KeyEvent event) {
	switch (keyCode) {
	case KeyEvent.KEYCODE_BACK:
	    if (event.getRepeatCount() == 0 && mInputView != null) {
		if (mInputView.handleBack()) {
		    return true; 
		} 
	    } 
	    break; 
 
	case KeyEvent.KEYCODE_DEL:
	    if (mComposing.length() > 0) {
		onKey(Keyboard.KEYCODE_DELETE, null);
		return true; 
	    } 
	    break; 
 
	case KeyEvent.KEYCODE_ENTER:
	    // Let the underlying text editor always handle these. 
Stop searching for code, let great code find you!  Add Codota to your java IDE