Spaces:
Running

File size: 382 Bytes
0a1e948
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
/**
 * 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],
];