mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-28 14:04:41 -07:00
fix: handle Shift+Space in Kitty keyboard protocol terminals (#15767)
This commit is contained in:
@@ -84,6 +84,7 @@ const KEY_INFO_MAP: Record<
|
||||
'[9u': { name: 'tab' },
|
||||
'[13u': { name: 'return' },
|
||||
'[27u': { name: 'escape' },
|
||||
'[32u': { name: 'space' },
|
||||
'[127u': { name: 'backspace' },
|
||||
'[57414u': { name: 'return' }, // Numpad Enter
|
||||
'[a': { name: 'up', shift: true },
|
||||
@@ -479,6 +480,10 @@ function* emitKeys(
|
||||
if (keyInfo.ctrl) {
|
||||
ctrl = true;
|
||||
}
|
||||
if (name === 'space' && !ctrl && !meta) {
|
||||
sequence = ' ';
|
||||
insertable = true;
|
||||
}
|
||||
} else {
|
||||
name = 'undefined';
|
||||
if ((ctrl || meta) && (code.endsWith('u') || code.endsWith('~'))) {
|
||||
|
||||
Reference in New Issue
Block a user