Skip to content

shift+space is only reported on KeyRelease on macOS #1621

@neomantra

Description

@neomantra

Describe the bug
shift+space is only reported on KeyRelease

Setup

  • macOS, zsh
  • kitty, Ghostty, osx terminal
  • Terminal Multiplexer: none

To Reproduce

  1. git clone https://github.com/charmbracelet/bubbletea.git
  2. cd bubbletea
  3. go get charm.land/lipgloss/v2
  4. go run examples/keyboard-enhancements/main.go
  5. Hold down shift and press space

I see this across terminals and in my apps and other test harnesses... only release is triggered.

  press: space
release: shift+space
  press: space
release: shift+space
  press: space
release: shift+space
  press: space
release: shift+space
Terminal supports key releases: true
Terminal supports key disambiguation: true
This demo logs key events. Press ctrl+c to quit.

Source Code
The bundled examples/keyboard-enhancements/main.go can be used.

Expected behavior

  press: space
release: shift+space

Screenshots
N/A

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions