Code example for KeyboardView

Methods: handleBack

                // 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 && mKeyboardView != null) {
                    if (mKeyboardView.handleBack()) {
                        return true; 
            case KeyEvent.KEYCODE_DEL:
                onKey(Keyboard.KEYCODE_DELETE, null);
                return true; 
            case KeyEvent.KEYCODE_ENTER:
                // Let the underlying text editor always handle these. 
                return false; 
        //return super.onKeyDown(keyCode, event); 
Stop searching for code, let great code find you!  Add Codota to your java IDE