A Client Keybinding Action Binding

interface KeybindingActionBinding {
    index?: number;
    key: string;
    logicalKey: string;
    modifiers?: string[];
}

Properties

index?: number

A numeric index which tracks this bindings position during form rendering

key: string

The KeyboardEvent#code value from

logicalKey: string

The Keyboard logical code if universal mode is enable (it is code otherwise) https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code/code_values

modifiers?: string[]

An array of modifiers keys from foundry.helpers.interaction.KeyboardManager.MODIFIER_KEYS which are required for this binding to be activated