[bug] Ctrl+Enter sends ASCII 13 \r instead of ASCII 10 \n
gamepad-coder opened this issue · comments
gamepad_coder commented
- I am on the latest Hyper.app version
- 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 ===
=== 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.