Always map mac keys, even on other platforms (#17618)

This commit is contained in:
Tommaso Sciortino
2026-01-26 17:06:07 -08:00
committed by GitHub
parent 57b57cc997
commit d75dc88de6

View File

@@ -565,7 +565,9 @@ function* emitKeys(
shift = /^[A-Z]$/.exec(ch) !== null;
alt = escaped;
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];
alt = true;
} else if (sequence === `${ESC}${ESC}`) {