Simplify paste handling (#16654)

This commit is contained in:
Tommaso Sciortino
2026-01-14 13:27:36 -08:00
committed by GitHub
parent 41369f67eb
commit 94d5ae541e
22 changed files with 25 additions and 97 deletions

View File

@@ -45,9 +45,6 @@ describe('keyBindings config', () => {
if (binding.command !== undefined) {
expect(typeof binding.command).toBe('boolean');
}
if (binding.paste !== undefined) {
expect(typeof binding.paste).toBe('boolean');
}
}
}
});

View File

@@ -104,8 +104,6 @@ export interface KeyBinding {
shift?: boolean;
/** Command/meta key requirement: true=must be pressed, false=must not be pressed, undefined=ignore */
command?: boolean;
/** Paste operation requirement: true=must be paste, false=must not be paste, undefined=ignore */
paste?: boolean;
}
/**
@@ -211,7 +209,6 @@ export const defaultKeyBindings: KeyBindingConfig = {
key: 'return',
ctrl: false,
command: false,
paste: false,
shift: false,
},
],
@@ -220,7 +217,6 @@ export const defaultKeyBindings: KeyBindingConfig = {
[Command.NEWLINE]: [
{ key: 'return', ctrl: true },
{ key: 'return', command: true },
{ key: 'return', paste: true },
{ key: 'return', shift: true },
{ key: 'j', ctrl: true },
],