Ejemplo n.º 1
0
        void InputingChar(object sender, System.Windows.Input.MouseEventArgs e)
        {
            if (CenterText.Text != "")
            {
                temporcomplete = true;

                System.Windows.Forms.Clipboard.SetText(CenterText.Text);

                Send sendkeys = new Send(CenterText.Text, CenterText.Text);

                if (CenterText.Text == "←")
                {
                    System.Windows.Forms.Clipboard.SetText("{BACK}");
                    sendkeys = new Send("{BACK}", "{BACK}");
                }
                else if (CurrentLanguage == Languages.Korean)
                {
                    switch (inputCount)
                    {
                    case 0:
                        inputCount++;
                        KeymapChange(KoreanJungsungKeymap);
                        koreaInputChar[0] = CenterText.Text;
                        InputingReset(true);
                        break;

                    case 1:
                        if (koreaInputChar[1] == null || koreaInputChar[1] == "")
                        {
                            inputCount = 0;
                            KeymapChange(KoreanChosungKeymap);
                            sendkeys = new Send(CenterText.Text, CenterText.Text);
                            sendkeys.Work();
                            InputingReset();
                            wordtemp += " ";
                        }
                        else
                        {
                            inputCount++;
                            KeymapChange(KoreanJongsungKeymap);
                            InputingReset(true);
                        }
                        break;

                    case 2:
                        inputCount = 0;
                        KeymapChange(KoreanChosungKeymap);
                        sendkeys = new Send(CenterText.Text, CenterText.Text);
                        sendkeys.Work();
                        InputingReset();
                        wordtemp += " ";
                        break;

                    default:
                        break;
                    }
                }
                else
                {
                    KeymapChange(GetKeymapArray(CurrentLanguage));
                    wordtemp += " ";
                    InputingReset();
                    InputingReset(true);
                    sendkeys.Work();
                }
            }
        }