/** Updates state machine to figure out when to automatically switch back to the previous mode. */ public void onCodeInput(final int code) { mState.onCodeInput(code, mLatinIME.getCurrentAutoCapsState()); }