mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-01 17:02:29 -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,
|
||||
paste: false,
|
||||
sequence: buffer.slice(0, m[0].length),
|
||||
kittyProtocol: true,
|
||||
kittyProtocol: false,
|
||||
},
|
||||
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: 'up', sequence: '\x1b[A' } },
|
||||
{ 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 }) => {
|
||||
renderKeypressHook(true);
|
||||
act(() => stdin.write(key.sequence));
|
||||
|
||||
Reference in New Issue
Block a user