terminal-code icon indicating copy to clipboard operation
terminal-code copied to clipboard

Cannot type { } [ ] with Option key on Spanish/Latin American Mac keyboard

Open wdavidlopez4 opened this issue 3 months ago • 1 comments

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.

wdavidlopez4 avatar Aug 28 '26 04:08 wdavidlopez4

@zenbu-bot

RobPruzan avatar Oct 30 '26 13:10 RobPruzan