Skip to content

Fix #472: use Kitty keyboard pop instead of push mode 0#473

Draft
asheshgoplani wants to merge 1 commit intomainfrom
fix/472-kitty-keyboard-pop
Draft

Fix #472: use Kitty keyboard pop instead of push mode 0#473
asheshgoplani wants to merge 1 commit intomainfrom
fix/472-kitty-keyboard-pop

Conversation

@asheshgoplani
Copy link
Copy Markdown
Owner

Summary

  • Changed DisableKittyKeyboard from ESC[>0u (push mode 0) to ESC[<u (pop) in internal/ui/keyboard_compat.go
  • On Ghostty, pushing mode 0 onto the Kitty stack activates CSI u encoding, which Bubble Tea v1.3.10 can't parse, causing shifted keys (capitals) to be silently dropped
  • Pop is safe: no-op if the stack is empty, restores previous state if something was pushed

Fixes #472

DisableKittyKeyboard sent ESC[>0u (push mode 0) which on Ghostty
activates CSI u encoding. Since Bubble Tea v1.3.10 doesn't parse CSI u,
shifted keys were silently dropped. Changed to ESC[<u (pop) which safely
disables any active Kitty mode without triggering CSI u encoding.

Also fixes gofmt on conductor.go.

Fixes #472

Committed by Ashesh Goplani
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DisableKittyKeyboard pushes mode 0 instead of popping, breaks capitals on Ghostty

1 participant