https://bugs.kde.org/show_bug.cgi?id=514241

--- Comment #1 from H. Matsuura <[email protected]> ---
When connecting with the following command in FreerRDP version 3.10.3, the key
functioned correctly.
xfreerdp3 /v:192.168.2.65
(192.168.2.65 is the target Windows 11 Pro machine)

I noticed the code starting at line 140 in the following FreeRDP code for
Japanese keyboards.
https://github.com/FreeRDP/FreeRDP/blob/master/libfreerdp/core/freerdp.c

I cloned KRDC from GitHub and tried modifying line 575 onwards in
rdpsession.cpp as follows, but it didn't work.

    if (!freerdp_settings_set_uint32(settings, FreeRDP_KeyboardLayout,
preferences->rdpKeyboardLayout())) {
        return -1;
    }
    qCInfo(KRDC) << "Keyboard Layout:" << preferences->rdpKeyboardLayout();
    switch ((unsigned int) preferences->rdpKeyboardLayout()) {
    case KBD_JAPANESE:
    case KBD_JAPANESE_INPUT_SYSTEM_MS_IME2002:
        qInfo() << "JAPANESE Keyboard";
        if(!freerdp_settings_set_uint32(settings, FreeRDP_KeyboardType,
WINPR_KBD_TYPE_JAPANESE)) {
            return -1;
        }
        if(!freerdp_settings_set_uint32(settings, FreeRDP_KeyboardSubType, 2))
{
            return -1;
        }
        break;
    default:
        break;    
    }

Please let me know if there's anything else I should check.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to