Skip to content

Safari on iPad/iPhone/AppleVisionPro with a hardware keyboard: ctrl-c sends keyCode 13 = <Enter> #5721

@sergezloto

Description

@sergezloto

Using a hardware keyboard with an iPad, iPhone or an Apple Vision Pro, hitting control-c in Safari results in a keypress event with keyCode 13, which is .
This is problematic in general with Unix CLI, and with Emacs.

Details

  • Browser and browser version:
    Safari on iOS, iPadOS, VisionOS. All versions.
  • OS version:
    All versions
  • xterm.js version:
    All versions up to 6.0.0

Steps to reproduce

  1. Use an iPhone or iPad or AppleVisionPro, with a paired bluetooth keyboard
  2. startup the demo app or, for example, ttyd
  3. type a long running command, e.g sleep 60
  4. try to interrupt it with control-c
  5. the cursor goes to the next line, process is not interrupted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions