hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Can't type some characters

Open quantumsheep opened this issue 6 years ago • 24 comments

  • [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.

quantumsheep avatar Jun 27 '18 08:06 quantumsheep

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

JoshuaRabiu avatar Jul 06 '18 01:07 JoshuaRabiu

I'm using AZERTY keyboard layout (FR).

quantumsheep avatar Jul 12 '18 13:07 quantumsheep

With Spanish keyboards we have problems with the keys ç and ñ

artero avatar Jul 23 '18 16:07 artero

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!

image

harrikauhanen avatar Aug 03 '18 10:08 harrikauhanen

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

harrikauhanen avatar Aug 03 '18 11:08 harrikauhanen

The name of my working directory is:

» robótica

and this is what looks like:

image

luiscobot avatar Aug 25 '18 17:08 luiscobot

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 :-)

steph-ben avatar Oct 03 '18 12:10 steph-ben

For now this is the reason I cannot use Hyper as my daily terminal. I'm switching back to Cmder

steph-ben avatar Oct 04 '18 08:10 steph-ben

Facing same problems with finnish keyboard layout. AltGr + does not work on Windows 10.

fi-intl

//Edit

https://keycode.info/ gives Alt Gr values (on chrome):

event.which: 18 event.code: AltRight event.key: AltGraph

nikosalonen avatar Oct 10 '18 06:10 nikosalonen

Alt Gr is understood like Control key in JavaScript's key events, I'll make a demonstration

quantumsheep avatar Oct 10 '18 11:10 quantumsheep

I did some research and Ctrl+AltAltGr. 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/

quantumsheep avatar Oct 10 '18 11:10 quantumsheep

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.

smauermann avatar Nov 23 '18 16:11 smauermann

@neurotronix wow indeed! hyper-pane caused these issues. Nice catch!

yduman avatar Dec 11 '18 16:12 yduman

Indeed, hyper-pane needs better default shortcuts on Windows: https://github.com/chabou/hyper-pane/issues/31

chabou avatar Dec 11 '18 16:12 chabou

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

djhi avatar Jan 17 '19 09:01 djhi

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.

gerardbosch avatar Aug 11 '19 01:08 gerardbosch

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

liitfr avatar Aug 30 '19 13:08 liitfr

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.

tcardonne avatar Aug 31 '19 18:08 tcardonne

Can you try with a CI build of current canary or maybe compile one yourself?

Stanzilla avatar Oct 12 '19 15:10 Stanzilla

Hi @Stanzilla ,

I'm still getting the issue with 3.1.0-canary.1 release (built from cd655ad1, downloaded from appveyor).

tcardonne avatar Oct 12 '19 15:10 tcardonne

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.

marcmarina avatar Nov 30 '20 11:11 marcmarina

I too have the same issue on windows (french azerty keyboard). If I press altgr+~ I get =~.

Kevin-De-Koninck avatar Dec 02 '20 12:12 Kevin-De-Koninck

Bump, same issue here, <altgr> + <2> then <space> produce é~ AZERTY French Keyboard

d-weber avatar Jan 08 '21 15:01 d-weber

Hi, any update? :-) Can't use 1-9 on WSL Ubuntu 22.04, don't have any plugin...

a1ternat1ve avatar Aug 27 '23 16:08 a1ternat1ve