mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-01 00:40:42 -07:00
Fix alt+left on ghostty (#12503)
This commit is contained in:
committed by
GitHub
parent
b259153403
commit
b5315bfc20
@@ -906,7 +906,6 @@ describe('Kitty Sequence Parsing', () => {
|
||||
// Should broadcast immediately as it's not a valid kitty pattern
|
||||
expect(keyHandler).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
name: '',
|
||||
sequence: '\x1b[m',
|
||||
paste: false,
|
||||
}),
|
||||
@@ -1007,7 +1006,6 @@ describe('Kitty Sequence Parsing', () => {
|
||||
expect(keyHandler).toHaveBeenNthCalledWith(
|
||||
2,
|
||||
expect.objectContaining({
|
||||
name: '',
|
||||
sequence: '\x1b[!',
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -686,12 +686,8 @@ export function KeypressProvider({
|
||||
}
|
||||
|
||||
// Always check if this could start a sequence we need to buffer (Kitty or Mouse)
|
||||
// We only want to intercept if it starts with ESC[ (CSI) or is EXACTLY ESC (waiting for more).
|
||||
// Other ESC sequences (like Alt+Key which is ESC+Key) should be let through if readline parsed them.
|
||||
const isCSI = key.sequence.startsWith(`${ESC}[`);
|
||||
const isExactEsc = key.sequence === ESC;
|
||||
const shouldBuffer = isCSI || isExactEsc;
|
||||
|
||||
const shouldBuffer = couldBeKittySequence(key.sequence);
|
||||
const isExcluded = [
|
||||
PASTE_MODE_START,
|
||||
PASTE_MODE_END,
|
||||
|
||||
Reference in New Issue
Block a user