Code example for KeyboardView

Methods: getKeyboard, setShifted

0
     * 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. 
     */ 
    private void sendKey(int keyCode) {
        LOGI(TAG,"KEYBOARD : SEND KEY --- " + keyCode);
       
         
        fireKeyIntent(keyCode);
    }