hyper
hyper copied to clipboard
Can't type some characters
- [x] I have searched the issues of this repo and believe that this is not a duplicate
- [x] I am on the latest Hyper.app version
- OS version and name: Windows 10 Professional v1803 (os version 17134.112)
- Hyper.app version: 2.0.0
- Link of a Gist with the contents of your .hyper.js: QuantumSheep/250cd236a67c9b49703553cea0aa1967
- The issue is reproducible in vanilla Hyper.app: Yes, just type a '|' or '{' or '[' and it will not be displayed.
Issue
Some characters can't be typed in Hyper like |
or {
or [
and some others.
It seems that it's only when the Alt Gr
button is pressed.
This issue seems to only affect international keyboard users, I'm unable to reproduce the issue while using my U.S keyboard layout. Which Layout are you using? I'll try to reproduce the issue. I also found these similar issues with other terminals:
- https://github.com/jeremyramin/terminal-plus/issues/137
- https://github.com/chjj/term.js/issues/91
- https://teamtreehouse.com/community/how-can-i-type-square-brackets-in-workspaces-on-a-german-keyboard-using-mac
I'm using AZERTY keyboard layout (FR).
With Spanish keyboards we have problems with the keys ç and ñ
With Finnish keyboard, I cannot enter characters like £${[]@ all requiring Alt Gr pressed. (Windows 10 +WSL). I can, however, enter EUR €, backslash \ and tilde ~ characters requiring Alt Gr as well.
UPDATE: Just realised that I can also enter }. If you look at the keyboard layout, you'll see that only the keys with numbers 1-9 are affected!
For the impatient ones, I created an AutoHotKey script:
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
#if WinActive("ahk_exe Hyper.exe")
^>!2::Send {ASC 64} ; @
^>!3::Send {U+00A3} ; £
^>!4::Send {ASC 36} ; $
^>!7::Send {ASC 123} ; {
^>!8::Send {ASC 91} ; [
^>!9::Send {ASC 93} ; ]
#if
The name of my working directory is:
» robótica
and this is what looks like:
For the impatient ones, I created an AutoHotKey script:
#NoEnv SendMode Input SetWorkingDir %A_ScriptDir% #if WinActive("ahk_exe Hyper.exe") ^>!2::Send {ASC 64} ; @ ^>!3::Send {U+00A3} ; £ ^>!4::Send {ASC 36} ; $ ^>!7::Send {ASC 123} ; { ^>!8::Send {ASC 91} ; [ ^>!9::Send {ASC 93} ; ] #if
Thanks for this script. However, I don't have any clue how to use it ... any tips welcome :-)
For now this is the reason I cannot use Hyper as my daily terminal. I'm switching back to Cmder
Facing same problems with finnish keyboard layout. AltGr +
//Edit
https://keycode.info/ gives Alt Gr values (on chrome):
event.which: 18
event.code: AltRight
event.key: AltGraph
Alt Gr is understood like Control key in JavaScript's key events, I'll make a demonstration
I did some research and Ctrl+Alt ≈ AltGr. So Hyper may need to understand when we push Alt key so it doesn't affect with the other keys.
Try it out: https://experiments.qtmsheep.com/keytester/
Today I have experienced this issue for the first time on Win10 and German keyboard layout. I can perfectly type "{" and "[" anywhere else BUT hyper. Weirdly this problem has not been apparent in hyper the last few weeks. Is there any fix?
Edit: I have found the culprit, disabling "hyper-pane" plugin was the solution.
@neurotronix wow indeed! hyper-pane
caused these issues. Nice catch!
Indeed, hyper-pane
needs better default shortcuts on Windows: https://github.com/chabou/hyper-pane/issues/31
I have the same issue on Ubuntu 18.10. I don't use hyper-pane
. Everything works fine with hyper_3.0.0-canary.1
but later versions print AltGr
. Disabling all my plugins does not fix the issue.
I attached my configuration file: .hyper.js
I'm trying the version 3.0.2.
Same problem on Spanish layout. It happens to me with the character '~' that is typed with AltGr + 4. The result is the following.
In normal circumstances you would type AltGr + 4, then space --> '~' shows up
What actually happens: AltGr + 4, then space --> '4~' shows up AltGr + 4 + 4 --> '44~' shows up.
The number 4 shows up before I release the AltGr (shouldn't happen). If I type AltGr + 4 + (anyChar) --> '4(anyChar)(anyChar)' shows up
It is very annoying as al need to move the caret back, remove the 4 and move the caret forward.
If I use Ctrl + Alt + 4, then space --> '~' shows up. But this is not practical as I need to move the hands a lot. And is not the standard way :)
@harrikauhannen thanks for the AutoHotkey script, I will try it in the meanwhile. <== It works for me.
Hello, i'm experiencing same trouble.
- windows : Windows 10 Professional, 1803
- hyper : 3.0.2 stable
- keyboard : FR (same key for 2 / é / ~)
on hyper, if i type AltGr + 2
then
, i get 2~
. Expected result is : ~
Thanks for your help
Hi,
I got the same, as commented on #29.
I'm using Windows 10 1903 (1809 at work). Hyper 3.0.2 stable. French keyboard layout.
I can reproduce this issue without any plugin.
Can you try with a CI build of current canary or maybe compile one yourself?
Hi @Stanzilla ,
I'm still getting the issue with 3.1.0-canary.1 release (built from cd655ad1, downloaded from appveyor).
Hello, I still have this issue. I'm on a Spanish layout, and the only Alt Gr combination that doesn't work is Alt Gr + 4 (~). This only happens on Windows, on Ubuntu it works fine.
I too have the same issue on windows (french azerty keyboard). If I press altgr+~
I get =~
.
Bump, same issue here, <altgr> + <2>
then <space>
produce é~
AZERTY French Keyboard
Hi, any update? :-) Can't use 1-9 on WSL Ubuntu 22.04, don't have any plugin...