mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 12:54:07 -07:00
Fix shift+tab keybinding when not in kitty mode (#12552)
This commit is contained in:
committed by
GitHub
parent
460c3debf5
commit
f796650122
@@ -166,7 +166,7 @@ function parseKittyPrefix(buffer: string): { key: Key; length: number } | null {
|
|||||||
shift: true,
|
shift: true,
|
||||||
paste: false,
|
paste: false,
|
||||||
sequence: buffer.slice(0, m[0].length),
|
sequence: buffer.slice(0, m[0].length),
|
||||||
kittyProtocol: true,
|
kittyProtocol: false,
|
||||||
},
|
},
|
||||||
length: m[0].length,
|
length: m[0].length,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ describe.each([true, false])(`useKeypress with useKitty=%s`, (useKitty) => {
|
|||||||
{ key: { name: 'right', sequence: '\x1b[C' } },
|
{ key: { name: 'right', sequence: '\x1b[C' } },
|
||||||
{ key: { name: 'up', sequence: '\x1b[A' } },
|
{ key: { name: 'up', sequence: '\x1b[A' } },
|
||||||
{ key: { name: 'down', sequence: '\x1b[B' } },
|
{ key: { name: 'down', sequence: '\x1b[B' } },
|
||||||
|
{ key: { name: 'tab', sequence: '\x1b[Z', shift: true } },
|
||||||
])('should listen for keypress when active for key $key.name', ({ key }) => {
|
])('should listen for keypress when active for key $key.name', ({ key }) => {
|
||||||
renderKeypressHook(true);
|
renderKeypressHook(true);
|
||||||
act(() => stdin.write(key.sequence));
|
act(() => stdin.write(key.sequence));
|
||||||
|
|||||||
Reference in New Issue
Block a user