Emit correct newline type return (#17331)

This commit is contained in:
Tommaso Sciortino
2026-01-22 11:54:34 -08:00
committed by GitHub
parent 233fe90f17
commit addb57c31f
2 changed files with 5 additions and 1 deletions

View File

@@ -219,7 +219,7 @@ describe('KeypressContext', () => {
name: 'return',
sequence: '\r',
insertable: true,
shift: false,
shift: true,
alt: false,
ctrl: false,
cmd: false,

View File

@@ -158,6 +158,10 @@ function bufferFastReturn(keypressHandler: KeypressHandler): KeypressHandler {
keypressHandler({
...key,
name: 'return',
shift: true, // to make it a newline, not a submission
alt: false,
ctrl: false,
cmd: false,
sequence: '\r',
insertable: true,
});