void SpecialKey(EKeyState state, string key) { dead_key_status = 0; if (unconfirmed_key != null) { if (state == EKeyState.Special_Backspace) { /* internally handle Backspace as a cancel if there is an unconfirmed key */ SendKey(EKeyState.Preview, ""); SendKey(EKeyState.Confirm, ""); unconfirmed_key = null; return; } ConfirmKey(); } SendKey(state, key); }
void SendKey(EKeyState state, string key) { onKeyboardTyping.Invoke(state, key); }