hyper icon indicating copy to clipboard operation
hyper copied to clipboard

[bug] Ctrl+Enter sends ASCII 13 \r instead of ASCII 10 \n

Open gamepad-coder opened this issue 11 months ago • 2 comments

  • [x] I am on the latest Hyper.app version
  • [x] I have searched the issues of this repo and believe that this is not a duplicate
  • OS version and name:
    • OS Name: Microsoft Windows 11 Pro
    • Version: 10.0.22621 Build 22621
  • WSL 2:
    • Debian: Debian GNU/Linux 11 (bullseye)
    • WSL version: 2.1.5.0
    • Kernel version: 5.15.146.1-2
  • Hyper.app version: 3.4.1 (stable)
  • Link of a Gist with the contents of your hyper.json: reproducible on Is Vanilla
  • Relevant information from devtools: N/A
  • The issue is reproducible in vanilla Hyper.app: Is Vanilla

Issue

=== Issue === ctrl + enter does not work correctly in Hyper.

=== Expectation === When using a Linux bash shell, it's typical for the terminal emulator to return different codes for enter and ctrl + enter:

  • enter: expected to return ASCII code 13 \r
  • ctrl + enter: expected to return ASCII code 10 \n
  • ctrl + j: expected to return ASCII code 10 \n

=== Example ===

Screenshot 2024-03-17 171213

=== Impact === Many modern apps and webapps use enter within text editors, but have a dedicated hotkey for ctrl+enter to submit.

Many other terminals can distinguish between enter and ctrl+enter out of the box.

gamepad-coder avatar Mar 17 '24 22:03 gamepad-coder

Hello, I would like to know if you have finally resolved this issue

Rclurn avatar Aug 13 '24 18:08 Rclurn

@Rclurn Nope, hasn't been patched yet. Just tested again; this issue is still present using Hyper version v3.4.1

gamepad-coder avatar Aug 25 '24 21:08 gamepad-coder