Skip to content

return key press event key has ctrl=true #27

@mmitchellg5

Description

@mmitchellg5

Describe the problem

return key press event key has ctrl=true
#
when only pressing return, and not ctrl

Steps to reproduce the problem

  reader.on(:keypress) do |event|
    puts event.key
  end

Actual behaviour

#<struct TTY::Reader::Key name=:return, ctrl=true, meta=false, shift=false>

Expected behaviour

#<struct TTY::Reader::Key name=:return, ctrl=false, meta=false, shift=false>

Describe your environment

  • OS version: macos 13.2.1
  • Ruby version: 3.2.1
  • TTY::Reader version: tty-reader (0.9.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions