Code example for KeyboardView

Methods: getKeyboardsetKeyboardsetShifted

0
        } 
 
        // Update the label on the enter key, depending on what the application 
        // says it will do. 
        mCurKeyboard.setImeOptions(mContext.getResources(), attribute.imeOptions);
        mKeyboardView.setKeyboard(mCurKeyboard);
    } 
 
 
    
 
    /** 
     * Helper to update the shift state of our keyboard based on the initial 
     * editor state. 
     */ 
    private void updateShiftKeyState(EditorInfo attr) {
        LOGI(TAG,"KEYBOARD : UPDATE_SHIFT_KEY_STATE");
        if (attr != null && mKeyboardView != null && mQwertyKeyboard == mKeyboardView.getKeyboard()) {
            int caps = 0;
            mKeyboardView.setShifted(mCapsLock || caps != 0);
        } 
    } 
    /** 
     * Helper to send a character to the editor as raw key events. 
     */ 
Experience pair programming with AI  Get Codota for Java