cleanup: Improve keybindings (#16672)

This commit is contained in:
Tommaso Sciortino
2026-01-14 16:30:07 -08:00
committed by GitHub
parent e58fca68ce
commit 42c26d1e1b
5 changed files with 17 additions and 23 deletions

View File

@@ -179,7 +179,7 @@ describe('KeypressContext', () => {
expect(keyHandler).toHaveBeenLastCalledWith(
expect.objectContaining({
name: '',
name: 'return',
sequence: '\r',
insertable: true,
}),

View File

@@ -157,7 +157,7 @@ function bufferFastReturn(keypressHandler: KeypressHandler): KeypressHandler {
if (key.name === 'return' && now - lastKeyTime <= FAST_RETURN_TIMEOUT) {
keypressHandler({
...key,
name: '',
name: 'return',
sequence: '\r',
insertable: true,
});