Shortkey seems not working

{
  "name": "Flutterxd",
  "id": "bb7d71ec",
  "version": "1.0.3",
  "description": "Export design spec to measure positions, copy css and export icons. Make writing Flutter and UI fun.",
  "icons": [
    {
      "width": 96,
      "height": 96,
      "path": "assets/logo.png"
    },
    {
      "width": 128,
      "height": 128,
      "path": "assets/logo_128.png"
    },
    {
      "width": 512,
      "height": 512,
      "path": "assets/logo_512.png"
    }
  ],
  "host": {
    "app": "XD",
    "minVersion": "13.0.0"
  },
  "uiEntryPoints": [
    {
      "type": "menu",
      "label": {
        "default": "FlutterXD",
        "zh": "FlutterXD"
      },
      "menuItems": [
        {
          "type": "menu",
          "label": {
            "default": "Export Flutter Style Code",
            "zh": "导出所有画板到本地"
          },
          "commandId": "copyflutter",
          "shortcut": { "mac": "Cmd+Shift+K", "win": "Ctrl+Shift+K" }
        }
      ]
    }
  ]
}

After upgrade for awhile, the shortkey just stop working, I just try everything other one.

Still not working

Please advice.

Hi @Tong

It looks like the shortcut is already used somewhere in XD and therefore not available for plugins. I’ve just tried the sortcut and gotten the error message

Cannot register a shortcut for menu item "xxxx" because it's already registered by another menu item. (which you probably also get in the developer console), meaning the shortcut isn’t available for plugins (and there’s basically no way to change that, meaning you’ll have to use another shortcut)…

I hope that helps,
Best,
Pablo

1 Like