vercel / hyper

A terminal built on web technologies
https://hyper.is
MIT License
43.28k stars 3.52k forks source link

Cant use ctrl+h as keybinding, as it is treated identically to backspace. #3204

Open H3mul opened 6 years ago

H3mul commented 6 years ago

Issue

I noticed the keycode for CTRL+h is the same as backspace when using WSL through Hyper, but not when using it through CMD or Console. Here are my findings.

The keymaps section of Hyper settings is empty. Both screenshots use the same WSL installation. Each time, I run showkey -a, then press c-h, then backspace.

CMD image

Hyper image

As you can see, only in Hyper does c-h look identical to backspace, according to WSL.

Furthermore, I have ctrl+h keybindings set inside the linux system (for example, switch panel left in tmux), and they work in CMD but not Hyper.

I hope to see this issue resolved, I plan to try and do some digging in Hyper code to locate the problem myself as well.

H3mul commented 6 years ago

Upon further exploration, I noticed several ctrl based issues. For example, ctrl-space isnt being captured by WSL at all, while works fine in CMD.

tplk commented 6 years ago

Having the same issue, would like to see it fixed.

Erog38 commented 6 years ago

I just ran into this as well. Trying to use Tmux in Hyper is broken for me as I use hjkl for navigation.

ironcamel commented 5 years ago

I use ctrl-{hjkl} to traverse windows/tabs in vim. Any update on this issue?

blackxored commented 5 years ago

This is still happening. Makes vim/tmux unusable if you're using any sort of ctrl-based navigation.

EDIT: this seems to come from xterm.js BTW.

smzm commented 5 years ago

same problem!

j18e commented 5 years ago

me too. Not using tmux, just vim keybinding and it acts like bs

torbbang commented 5 years ago

Same problem observed here on both Ubuntu 18.10 and Windows 10 with Hyper 2.1.2 and no plugins. I tried 3.0.0 on Windows 10 with the same result.

nonetrix commented 2 years ago

Same problem not using Tmux maybe it's a weird shell limitation? This really sucks I want to bind ctrl + h to go back a directory

LabhanshAgrawal commented 2 years ago

Isn't this the expected behaviour? https://www.howtogeek.com/howto/ubuntu/keyboard-shortcuts-for-bash-command-shell-for-ubuntu-debian-suse-redhat-linux-etc/#:~:text=Ctrl%2BH%C2%A0or%20Backspace%3A%20Delete%20the%20character%20before%20the%20cursor.