Cannot type { } [ ] with Option key on Spanish/Latin American Mac keyboard
Environment
- tode v0.2.0 (stable), macOS
- Host terminal: cmux (libghostty)
- Keyboard layout: Latin American / Spanish (ISO)
Problem
Symbols typed with the Option key — [ (⌥+(), ] (⌥+)), { (⌥+Shift+(),
} (⌥+Shift+)) — work everywhere in the host terminal (cmux/Ghostty) but
CANNOT be typed inside tode's editor. Other chars (?¿=)(/+ `) work fine.
Likely cause
tode enables the kitty keyboard protocol (I see CSI > 1 u / CSI ? u). Under it,
the terminal reports the physical base key + Option modifier instead of the
macOS-composed character, and tode seems to drop the associated text (flag 16 /
"report associated text"), so the composed bracket never reaches VS Code. In the
plain shell (legacy encoding) the composed byte passes through, so it works there.
This makes it fail only inside tode, and only on non-US Mac layouts.
Expected Option-composed characters ({} [] etc.) should be inserted in the editor, matching the host terminal's behavior.
@zenbu-bot