{
  "formId": "commandpanel",
  "entity": "CommandPanel",
  "title": "Command Palette Shortcut",
  "idField": "CommandPanelId",
  "pages": [
    {
      "pageId": "General",
      "pageName": "General",
      "sections": [
        {
          "sectionId": "GeneralInfo",
          "sectionName": "Shortcut Definition",
          "layout": { "columns": 12 },
          "fields": [
            { "fieldId": "CommandPanelId", "type": "number", "DefaultValue": 0, "PostData": true, "IsVisible": false },
            {
              "fieldId": "Category",
              "label": "Category",
              "type": "combobox",
              "mandatory": true,
              "DefaultValue": 0,
              "layout": { "colSpan": 4 },
              "PickLists": [
                { "key": 0, "value": "General" },
                { "key": 1, "value": "Form" },
                { "key": 2, "value": "Report" }
              ]
            },
            {
              "fieldId": "DisplayName",
              "label": "Display Name",
              "type": "text",
              "mandatory": true,
              "MaxLength": 200,
              "layout": { "colSpan": 8 }
            },
            {
              "fieldId": "KeyString",
              "label": "Key",
              "type": "text",
              "mandatory": true,
              "MaxLength": 1,
              "layout": { "colSpan": 2 }
            },
            {
              "fieldId": "IsCtrlKey",
              "label": "Ctrl",
              "type": "checkbox",
              "DefaultValue": 0,
              "layout": { "colSpan": 2 }
            },
            {
              "fieldId": "IsAltKey",
              "label": "Alt",
              "type": "checkbox",
              "DefaultValue": 0,
              "layout": { "colSpan": 2 }
            },
            {
              "fieldId": "IsShiftKey",
              "label": "Shift",
              "type": "checkbox",
              "DefaultValue": 0,
              "layout": { "colSpan": 2 }
            },
            {
              "fieldId": "IsSpecialKey",
              "label": "Special Key",
              "type": "checkbox",
              "DefaultValue": 0,
              "layout": { "colSpan": 4 }
            },
            {
              "fieldId": "ActionName",
              "label": "Action Code",
              "type": "text",
              "mandatory": true,
              "MaxLength": 200,
              "layout": { "colSpan": 8 },
              "helpText": "Dispatched to handleKeyboardCommand()/executeCommand() in gbcommandpalette.component.ts — must match an existing case."
            },
            {
              "fieldId": "Description",
              "label": "Description",
              "type": "textarea",
              "MaxLength": 500,
              "layout": { "colSpan": 12 }
            },
            {
              "fieldId": "DisplayOrder",
              "label": "Sort Order",
              "type": "number",
              "DefaultValue": 9999,
              "layout": { "colSpan": 4 }
            },
            {
              "fieldId": "IsEnabled",
              "label": "Enabled",
              "type": "checkbox",
              "DefaultValue": 1,
              "layout": { "colSpan": 4 }
            }
          ]
        }
      ]
    }
  ],
  "api": {
    "save": "Framework.CommandPanel.Save",
    "update": "Framework.CommandPanel.Save",
    "delete": "Framework.CommandPanel.Delete",
    "get": "Framework.CommandPanel.Get"
  }
}
