Uploaded image for project: 'Guacamole'
  1. Guacamole
  2. GUACAMOLE-518

Shift incorrectly sent for uppercase letters while Caps Lock is active

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.2.0
    • RDP
    • None

    Description

      As reported in the user@ mailing list:

      I have been writing in Libre Office Writer on Guacamole RDP . I clicked CAPS lock and started writing but the text was still in lowercase.

      Guacamole-Server version : 0.9.14
      Guacamole-Client version : 0.9.14
      XRDP Version : 0.9.5
      Remote O.S. : Ubuntu 16.04.3 LTS 64-bit

      I have not done any modifications in the code.

      If I reconnect the RDP session with CAPS lock on, then it starts printing uppercase but if I again click CAPS lock to set it to lowercase, it still prints the uppercase.

      This is apparently due to the way Guacamole's RDP support handles uppercase letters and Caps Lock:

      • The client side of Guacamole handles Caps Lock correctly, and forwards this key as a key event to the Guacamole server.
      • The RDP support handles the key correctly, sending the corresponding scancode to the RDP server.
      • The RDP support handles the Caps Lock state incorrectly, continuing to send Shift keypresses for uppercase letters despite Caps Lock being active.

      The RDP support needs to be modified such that the behavior of keys within each keyboard layout when Caps Lock is enabled, various modifiers are active/inactive, etc. can be correctly modeled. The keymaps currently only provide for defining behavior based on modifiers.

      Attachments

        1. yes-its-a-bug-in-the-handling-of-capslock.png
          23 kB
          Mike Jumper
        2. image.png
          105 kB
          Amarjeet Singh
        3. image.png
          57 kB
          Amarjeet Singh
        4. image.png
          57 kB
          Amarjeet Singh
        5. image.png
          105 kB
          Amarjeet Singh

        Issue Links

          Activity

            People

              mjumper Mike Jumper
              amarjeetxc Amarjeet Singh
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: