Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 config schema #3760

Merged
merged 18 commits into from
Sep 26, 2024
3 changes: 0 additions & 3 deletions Terminal.Gui/Resources/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -698,8 +698,5 @@
]
}
}



]
}
1 change: 1 addition & 0 deletions Terminal.Gui/Terminal.Gui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,5 @@
<EnableSourceLink>true</EnableSourceLink>
<Authors>Miguel de Icaza, Tig Kindel (@tig), @BDisp</Authors>
</PropertyGroup>
<ProjectExtensions><VisualStudio><UserProperties resources_4config_1json__JsonSchema="../../docfx/schemas/tui-config-schema.json" /></VisualStudio></ProjectExtensions>
</Project>
135 changes: 2 additions & 133 deletions docfx/schemas/tui-config-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -389,139 +389,8 @@
]
},
"Key": {
"description": "A key pressed on the keyboard.",
"type": "object",
"properties": {
"Key": {
"description": "A key name (e.g. A, b, 1, 2, Enter, Esc, F5, etc.) or an integer value (e.g. 65, 66, 67, etc.).",
"oneOf": [
{
"type": "string",
"enum": [
"Null",
"Backspace",
"Tab",
"Enter",
"Clear",
"Esc",
"Space",
"D0",
"D1",
"D2",
"D3",
"D4",
"D5",
"D6",
"D7",
"D8",
"D9",
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"a",
"b",
"c",
"d",
"e",
"f",
"g",
"h",
"i",
"j",
"k",
"l",
"m",
"n",
"o",
"p",
"q",
"r",
"s",
"t",
"u",
"v",
"w",
"x",
"y",
"z",
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"I",
"J",
"K",
"L",
"M",
"N",
"O",
"P",
"Q",
"R",
"S",
"T",
"U",
"V",
"W",
"X",
"Y",
"Z",
"F1",
"F2",
"F3",
"F4",
"F5",
"F6",
"F7",
"F8",
"F9",
"F10",
"F11",
"F12",
"Insert",
"Delete",
"Home",
"End",
"PageUp",
"PageDown",
"Up",
"Down",
"Left",
"Right"
]
},
{
"type": "integer"
}
]
},
"Modifiers": {
"description": "A keyboard modifier (e.g. Ctrl, Alt, or Shift).",
"type": "array",
"items": {
"type": "string",
"enum": [
"Ctrl",
"Alt",
"Shift"
]
}
}
},
"required": [
"Key"
]
"description": "A key pressed on the keyboard (e.g. \"Ctrl+Q\")",
"type": "string"
}
}
}
Expand Down
Loading