Spaces:
Running
Running
Download client/enterToSubmitCases.ts from Felladrin/MiniSearch: direct link, hf CLI and curl.
- Browser
- Download file 382 Bytes
-
https://huggingface.co/spaces/Felladrin/MiniSearch/resolve/main/client/enterToSubmitCases.ts
- Command line
-
hf download hf://spaces/Felladrin/MiniSearch/client/enterToSubmitCases.ts
-
curl -L -o enterToSubmitCases.ts https://huggingface.co/spaces/Felladrin/MiniSearch/resolve/main/client/enterToSubmitCases.ts
382 Bytes
| /** | |
| * The `enterToSubmit` matrix: the setting, the key, and whether the key sends. | |
| * Shared by the search form and the chat input, which read the same setting. | |
| */ | |
| export const ENTER_TO_SUBMIT_CASES: [boolean, string, boolean][] = [ | |
| [true, "{Enter}", true], | |
| [true, "{Shift>}{Enter}{/Shift}", false], | |
| [false, "{Shift>}{Enter}{/Shift}", true], | |
| [false, "{Enter}", false], | |
| ]; | |