none
BUG IME (WPF) RRS feed

  • 问题

  • WPF APPLICATION

     

    BUG INFO:

    Every time I enter shortcuts “1”(Num 1) when “lnumber(Lable) number add 1.

    But can only use English input method.

     

    When I use Chinese input method, shortcut keys cannot be used.

    As shown in the screenshot.

     

    How can I solve this problem?

    2014年10月27日 3:15

全部回复

  • Hi,

    Would you mind to share your code in detail?

    Im not sure if I have reproduced your behavior, I use system default input and use the following code:

    private void textbox1_KeyDown(object sender, KeyEventArgs e)
    
            {
    
                if (e.Key == Key.D1)
    
                {
    
                    label1.Content = "label" + "1";
    
                }
    
                else if (e.Key == Key.D2)
    
                {
    
                    label1.Content = "label" + "2";
    
                }
    
                else if (e.Key == Key.D3)
    
                {
    
                    label1.Content = "label" + "3";
    
                }
    
                else if (e.ImeProcessedKey == Key.D1)
    
                {
    
                    label1.Content = "label" + "1";
    
                }
    
                else 
    
                {
    
                    label1.Content = "label" + "4";
    
                }
    
            }
    

    I input things in textbox and which will trigger label to update its content and here are the results:

    1.  System ENG: No problem, all can be updated

    2.  System Chinese input: Like you mentioned, it cannot detect what I input.

    3.  Microsoft Bing input: No problem, Chinese input can detect what I get

    Here is the screenshot of Bing input, by default label content is “label” with out “1”.

    You can see I even tested e.ImeProcessedKey which still cannot work. So please confirm if I’m building the same scenario like yours.

    In this way we can be sure we are on the right track.

    Best regards,



    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2014年10月28日 8:58
    版主