Restore the feature removed by #4886 on current master. Preserve the current settings entry point, moving-menu behavior, and desktop update UI.
14 lines
516 B
TypeScript
14 lines
516 B
TypeScript
/** Window-local timing accepted by the Host and browser keyboard service. */
|
|
import z from '@deepseek-ai/schemastery'
|
|
|
|
/** Fixed shortcut sequence settings. */
|
|
export interface Config {
|
|
/** Maximum interval between independent Escape presses for stopping a reply, in milliseconds. */
|
|
stopSequenceMs: number
|
|
}
|
|
|
|
/** Validated deployment settings for fixed keyboard sequences. */
|
|
export const Config: z<Partial<Config>, Config> = z.object({
|
|
stopSequenceMs: z.natural().min(1).max(2_147_483_646).default(500),
|
|
})
|