Write an object. Only the fields named below are allowed. Unknown fields are rejected so a typo cannot hide inside the document.
You must include id and type.
You may omit targetRef, key, modifiers, pointer, gesture, markerRef, externalName, actionRefs, once, debounce, and extensions. Leave a field out when you have nothing to say. Do not invent a placeholder.
Exact constraints
- type
object- additional properties
forbidden
idrequiredidThis is not a new shape. It reuses id from the common module. Open that definition for the fields you can write.
typerequiredtaxonomyThis is not a new shape. It reuses taxonomy from the common module. Open that definition for the fields you can write.
targetRefidThis is not a new shape. It reuses id from the common module. Open that definition for the fields you can write.
keystringWrite a text value.
An empty string is not allowed.
Exact constraints
- type
string- min length
1
modifiersarray<"alt" | "ctrl" | "meta" | "shift">Write a list. Each item follows the shape described under items.
Each item in the list must be different. Duplicates are invalid.
Exact constraints
- type
array- unique items
true
items"alt" | "ctrl" | "meta" | "shift"Pick one of the 4 listed values. Any other value is invalid. The list is closed on purpose so tools agree on the same words.
Exact constraints
"alt""ctrl""meta""shift"
pointer"mouse" | "touch" | "pen" | "any"Pick one of the 4 listed values. Any other value is invalid. The list is closed on purpose so tools agree on the same words.
Exact constraints
"mouse""touch""pen""any"
gestureobjectWrite an object. Only the fields named below are allowed. Unknown fields are rejected so a typo cannot hide inside the document.
You may omit type, axis, threshold, and direction. Leave a field out when you have nothing to say. Do not invent a placeholder.
Exact constraints
- type
object- additional properties
forbidden
type"drag" | "swipe" | "pinch" | "rotate" | "long-press" | "tap"Pick one of the 6 listed values. Any other value is invalid. The list is closed on purpose so tools agree on the same words.
Exact constraints
"drag""swipe""pinch""rotate""long-press""tap"
axis"x" | "y" | "both"Pick one of the 3 listed values. Any other value is invalid. The list is closed on purpose so tools agree on the same words.
Exact constraints
"x""y""both"
thresholdnumberWrite a number. Decimals are allowed.
The number must be at least 0.
Exact constraints
- type
number- minimum
0
direction"up" | "down" | "left" | "right" | "any"Pick one of the 5 listed values. Any other value is invalid. The list is closed on purpose so tools agree on the same words.
Exact constraints
"up""down""left""right""any"
markerRefidThis is not a new shape. It reuses id from the common module. Open that definition for the fields you can write.
externalNamestringWrite a text value.
An empty string is not allowed.
Exact constraints
- type
string- min length
1
actionRefsarray<id>Write a list. Each item follows the shape described under items.
Each item in the list must be different. Duplicates are invalid.
Exact constraints
- type
array- unique items
true
itemsidThis is not a new shape. It reuses id from the common module. Open that definition for the fields you can write.
oncebooleanWrite true or false.
Exact constraints
- type
boolean
debouncedurationThis is not a new shape. It reuses duration from the common module. Open that definition for the fields you can write.
extensionsextensionsThis is not a new shape. It reuses extensions from the common module. Open that definition for the fields you can write.