useScheduledEmailSubmitOnEnter()
Beta API. Mostly stable, but details may change in a minor release, outside SemVer. See API maturity.
The Enter-to-submit key handler the default scheduled-export dialog attaches to its title, recipients and recurrence inputs: calls onSubmit on Enter unless the submit button would be disabled — the same guard useScheduledEmailDialogActionBarProps() puts on the button (form validity, a save in flight, execution-timestamp mode). Pass the result as onTitleKeyDown / onKeyDownSubmit to the header and recipients blocks so every Enter path shares the dialog’s one save.
Throws outside the scheduled-export dialog’s state providers.
export declare function useScheduledEmailSubmitOnEnter(input: IUseScheduledEmailSubmitOnEnterInput): (event: KeyboardEvent) => void;
Parameters
Parameter | Type | Description |
|---|---|---|
{ onSubmit, isSaving, } | (not declared) | |
input |
Returns
(event: KeyboardEvent) => void