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

Shift incorrectly sent for uppercase letters while Caps Lock is active



    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0
    • Component/s: RDP
    • Labels:
    • Environment:


      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.


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

          Issue Links



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


                • Created: