-
Notifications
You must be signed in to change notification settings - Fork 697
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
TextField does not accept characters like @ #346
Comments
Hmmm, at first thanks for your answer. I'm also running it on Windows 10 and Terminal.Gui version 0.70.0. I can't help it, but my TextFields do not accept '@' or '€'. Other characters that are created with an "Alt" combination like '|' or '²' are correctly written into the TextField. Am I missing some property that I need to set? I can't post my original code because of it is too long. Here is a little sample that also has this problem.
|
No, you don't missing anything. You are right. Try with my pr at #345 |
In my pr the '€' really spawns to 'e'. I' will see that. But '@' spawns correctly. Try in the console to verify if it spawns alright too. |
In the normal console the mentioned characters spawn correctly. When I set '@' as text in the constructor of Textfield it works. But while running the app it doesn't.
But when I try to set '€' as text in the constructor of TextField I run into a "System.IndexOutOfRangeException"
|
Ok, I already got it. It's a bug in Stack and there is an pr to fix at gui-cs/NStack#42. I created a package and is working at constructor. Writing inside the text there still have some incorrect mapping. |
Nice to hear you found a solution for one of the problems. |
I am confused, the issue for the NStack#42 should have been fixed a long time ago, I do not think I need #42 do I? It shows a conflict for a change that is already there. |
There is a pr in gui-cs/NStack@fe8866e that needs to be merged in NStack to solves this issue. |
I am confused - that PR was already merged. |
This is my version of the fix, and it is quite old: |
But why they are still open in the pr? Another day I merged into a new branch and used in the Gui and I didn't get the error in the ColumnWidth method of the Rune class on the textfield at Redraw. And I've some changes that will be possible to use the AltMask + ControlA + delta and special characters, like €. I'm still working to solve some small bugs that yet persist. If you can update the Stack I'll include that improvments too. @migueldeicaza did you update the nuget too? Thanks. |
@migueldeicaza, that is the pr that solves the ColumnWidth of Run class error |
It's working well now. Some cache problem with the NStack nuget package, I think. Sorry |
Good point, I should keep at least the test. |
Hi,
I'm using some TextFields in my application and I came across a problem. Every time I try to write an '@' character into the field it spawns a 'q' instead. Does somebody have a solution for this? Thanks in advance.
Greetings
The text was updated successfully, but these errors were encountered: