Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor is incompatible with dead keys #2

Open
pierrebeaucamp opened this issue Dec 21, 2015 · 2 comments
Open

Editor is incompatible with dead keys #2

pierrebeaucamp opened this issue Dec 21, 2015 · 2 comments

Comments

@pierrebeaucamp
Copy link

I'm using the US-International keyboard layout, which makes use of a couple dead keys.

For example, to type ", I need to press " + space.

The editor ignores any dead keys and inserts only a space. In other words, I can't even type a simple string.

I guess you have custom listeners on keypresses instead of relying on the input of the OS.

@xixixao
Copy link
Owner

xixixao commented Dec 26, 2015

Wow, I have never even heard of dead keys. This will have to be fixed by customization, because I don't use " as a typed char but as command key. I wonder what the key event looks like in such a case.

@pierrebeaucamp
Copy link
Author

I used the following site to record my key events: http://unixpapa.com/js/testkey.html

Both of the following results will type the character ".

keydown  keyCode=16        which=16        charCode=0        
keydown  keyCode=229       which=229       charCode=0        
keydown  keyCode=32  ( )   which=32  ( )   charCode=0        
keypress keyCode=34  (")   which=34  (")   charCode=34  (")  
keyup    keyCode=16        which=16        charCode=0        
keyup    keyCode=222       which=222       charCode=0        
keyup    keyCode=32  ( )   which=32  ( )   charCode=0   
keydown  keyCode=16        which=16        charCode=0        
keydown  keyCode=229       which=229       charCode=0        
keyup    keyCode=16        which=16        charCode=0        
keyup    keyCode=222       which=222       charCode=0        
keydown  keyCode=32  ( )   which=32  ( )   charCode=0        
keypress keyCode=34  (")   which=34  (")   charCode=34  (")  
keyup    keyCode=32  ( )   which=32  ( )   charCode=0  

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants