Completed
Last Updated: 25 Mar 2021 17:31 by ADMIN
Release R2 2021 (LIB 2021.1.329)
logan
Created on: 09 Jul 2020 10:09
Category: VirtualKeyboard
Type: Bug Report
0
RadVirtualKeyboard: problem with support to input Chinese

I have tried the Telerik demo virtual keyboard program. After I changed the system input language to Chinese, then click any letter on the virtual keyboard, the text candidate box (see the red-framed part below in the screenshot) just flash and disappeared and only the English letter is input into the text box. Is there any solution or does Progress have a plan to support this in the future version? 

By the way, I use the Windows build-in IME Microsoft Pinyin.

3 comments
ADMIN
Todor
Posted on: 10 Mar 2021 10:23

Hello,

I would like to follow up with an update.

The strange behavior is caused by the sequence of mouse events. When a key from RadVirtualKeyboard receives a mouse down, it triggers its MouseClick event, where the key is being sent using the Win32 SendInput function, and as expected the IME pop-up is opened. Then when the mouse button is released it is processed by the IME pop-up and the latter is closed.

As a workaround, I can suggest changing the ClickMode of all the keys to Release. This is illustrated in the code snippet below, which uses the GetAllKeys method of MainLayoutPanel to access each key of RadVirtualKeyboard:

IList<IKey> keys = this.radVirtualKeyboard1.VirtualKeyboardElement.MainLayoutPanel.GetAllKeys();
foreach (IKey key in keys)
{
    LightVisualButtonElement button = key as LightVisualButtonElement;
    if (button != null)
    {
        button.ClickMode = Telerik.WinControls.ClickMode.Release;
    }
}

Regards,
Todor Vyagov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 09 Jul 2020 13:46

Hello, logan,

Following the provided information, I have added a Chinese culture to my computer and tested the virtual keyboard in a sample project. I have the following 3 cultures on my computer:

Indeed, switching to Chinese and clicking a letter on the virtual keyboard seems to show the popup and immediately closes it. The attached gif file illustrates the obtained behavior.

This behavior is not observed on a touch device because only the mouse down is received as а message. But when clicking with the mouse, both messages, mouse down and mouse up, are received and the mouse up message will trigger the popup closing. 

I have logged it in our feedback portal by creating a public thread on your behalf. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.

I have also updated your Telerik points.

Currently, due to the specificity of the input handling in RadVirtualKeyboard, I am unable to suggest an appropriate solution. We will do our best to introduce a suitable approach accordingly. Make sure that you follow this item in order to get notified once the status changes.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
logan
Posted on: 09 Jul 2020 12:14
It seems it works when tapping on a touch screen, but not work by mouse click.