Ejemplo n.º 1
0
 private void ImeHandler_onResultReceived(object sender, IMEResultEventArgs e)
 {
     if (e.result >= 0x20)
     {
         this.InsertText(e.result.ToString());
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Handler_onResultReceived(object sender, IMEResultEventArgs e)
        {
            if (IMEAdapter.compositionMode == IMEAdapter.CompositionMode.Off)
            {
                return;
            }

            var content = IMEAdapter.compositionString;

            switch ((int)e.result)
            {
            case 27:
            case 13:
                IMEAdapter.compositionString = "";
                break;

            default:
                IMEAdapter.compositionString += e.result;
                break;
            }
        }