diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-16 12:26:38 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:14 -0300 |
| commit | 564b35d26d7f90cea26379af71366d428719e7fe (patch) | |
| tree | 9a5ce5db7f8bcf34b7bb5dd8540509e4f46b158a /src/body_layer.zig | |
| parent | 2109098400fa37d7b448f232c848a0411c318591 (diff) | |
| download | pardes-564b35d26d7f90cea26379af71366d428719e7fe.tar.gz pardes-564b35d26d7f90cea26379af71366d428719e7fe.zip | |
Forward Option chords to the child on macOS
In raw tty mode Alt-n reached the child as a bare `n`: the ESC prefix was
dropped on the floor, and only on macOS. ghostty's encoder refuses the legacy
alt-esc prefix on a macOS build unless macos_option_as_alt says Option really
is Alt, and KeyEncodeOptions.fromTerminal cannot know that one — it says so in
a comment — so it defaults to false.
False is right for an app that lets macOS translate the chord and hands the
encoder the composed text. Every pardes shell decides the modifier itself and
hands the core the BASE key with the alt bit and no text at all, which
PardesView.keyDown and app.mjs both spell the same way, so by the time the
encoder runs there is nothing left to translate.
The unit suite has been catching this on macOS all along; it is only invisible
on Linux, where that branch does not compile in.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Diffstat (limited to 'src/body_layer.zig')
0 files changed, 0 insertions, 0 deletions
