mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-24 22:55:13 +00:00
Always map mac keys, even on other platforms (#17618)
This commit is contained in:
committed by
GitHub
parent
57b57cc997
commit
d75dc88de6
@@ -565,7 +565,9 @@ function* emitKeys(
|
|||||||
shift = /^[A-Z]$/.exec(ch) !== null;
|
shift = /^[A-Z]$/.exec(ch) !== null;
|
||||||
alt = escaped;
|
alt = escaped;
|
||||||
insertable = true;
|
insertable = true;
|
||||||
} else if (MAC_ALT_KEY_CHARACTER_MAP[ch] && process.platform === 'darwin') {
|
} else if (MAC_ALT_KEY_CHARACTER_MAP[ch]) {
|
||||||
|
// Note: we do this even if we are not on Mac, because mac users may
|
||||||
|
// remotely connect to non-Mac systems.
|
||||||
name = MAC_ALT_KEY_CHARACTER_MAP[ch];
|
name = MAC_ALT_KEY_CHARACTER_MAP[ch];
|
||||||
alt = true;
|
alt = true;
|
||||||
} else if (sequence === `${ESC}${ESC}`) {
|
} else if (sequence === `${ESC}${ESC}`) {
|
||||||
|
|||||||
Reference in New Issue
Block a user