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
- Use an iPhone or iPad or AppleVisionPro, with a paired bluetooth keyboard
- startup the demo app or, for example, ttyd
- type a long running command, e.g
sleep 60
- try to interrupt it with control-c
- the cursor goes to the next line, process is not interrupted.