| 1 | /** |
| 2 | * What the Return key does in the composer on a hardware keyboard. `send` |
| 3 | * submits the draft and Shift-Return inserts a newline; `newline` inserts a |
| 4 | * newline and Command-Return submits. Applies on iOS only — Android's composer |
| 5 | * has no hardware Return handling. |
| 6 | */ |
| 7 | export type ComposerEnterBehavior = "send" | "newline"; |
| 8 | |
| 9 | export const DEFAULT_COMPOSER_ENTER_BEHAVIOR: ComposerEnterBehavior = "send"; |