-
Notifications
You must be signed in to change notification settings - Fork 77
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
Keyboard in US International inserts char \0 when pressing '+space (dead keys) #48
Comments
There is nothing wrong with the API. var input = ReadLine.Read("(prompt)> ");
Console.WriteLine(input);
Assert.True(input, "' "); |
Sorry, I think you got it wrong. I meant |
Fixed typo in previous reply. Either way, it works regardless. Set a break on the 2nd line and verify the 'input'. You will see that the string has both characters. I can not find anything wrong with the API as it returns the proper input. |
yes @Latency there is some funny behavior when using US international keyboard (which has deadkeys like ' and " to set accents on following characters). what i see is that spaces are inserted when such a dead key is pressed, this is visible when typing
|
With my Spanish keyboard writing "é" requires pressing "´" + "e", and the result in ReadLine.Read is not the desired one:
...although if I write "é" in my text editor, copy it and then paste it in the input, it works perfectly. |
Hello!
Thanks for creating this awesome package. I love what you are doing to improve CLI/CI scenario on the .net environment.
I'm using this package and I've noticed that when you press
' + space
outputs\0'
, which outputs only one'
char in other softwares. I think that this might be related on how you read the input (reading keys vs. reading inserted data - assuming this, not sure).This happens because when using US International it has dead keys which can be used to change the next key. In this case I just want the
'
so I need to pressspace
after.https://en.wikipedia.org/wiki/Dead_key
The text was updated successfully, but these errors were encountered: