XType | ${KEY_CMD+KEY_UP} not working on Mac (Workaround available)

The following command isn’t working correctly for me:

{
      "Command": "XType",
      "Target": "${KEY_CMD+KEY_UP}",
      "Value": ""
    }

It’s just moving to the line above – just one line – instead of moving to the 1st line.

Should I be using it differently? Any workarounds?
Thanks!

It is a known issue, see XType for Mac KEY_CMD not working

Workaround: Use XRun and some Python sendkeys, see I really need spacebar to work with XType or otherwise (Workaround availabe) - #2 by admin

We confirmed the “key up” problem and found a good workaround. You can use the free CLICLICK tool and then run it from inside the RPA software with the XRUN command line. So to replace XTYPE | ${KEY_CMD+KEY_UP} use xrun | /path-to/cliclick| kd:cmd kp:arrow-up. In JSON notation:

So to replace

   {
      "Command": "XType",
      "Target": "${KEY_CMD+KEY_UP}",
      "Value": ""
    }

use

    {
      "Command": "XRun",
      "Target": "/Users/qa/Desktop/cliclick",
      "Value": "kd:cmd kp:arrow-up"
    }

Demo: This macro clicks on a folder and then opens it with CMD+UP:

{
  "Name": "mac key up",
  "CreationDate": "2020-8-2",
  "Commands": [
    {
      "Command": "XClick",
      "Target": "uifolder_dpi_192.png",
      "Value": ""
    },
    {
      "Command": "pause",
      "Target": "1000",
      "Value": ""
    },
    {
      "Command": "XRun",
      "Target": "/Users/qa/Desktop/cliclick",
      "Value": "kd:cmd kp:arrow-up"
    }
  ]
}

Mac OS shortcuts with Key UP:

  • Command–Up Arrow: Open the folder that contains the current folder.

  • Command–Control–Up Arrow: Open the folder that contains the current folder in a new window.

The new XModule V2021-1 fixes the Mac KEY_CMD issue.