-
Notifications
You must be signed in to change notification settings - Fork 15
Included condition to allow @ character on console Input #15
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
base: dev
Are you sure you want to change the base?
Conversation
afucher
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your PR!
I added some suggestion about the fix, and also it will be good to add a test to replicate this error. If you need any help with this, please let me know.
…ed validation on ConsoleObservable:ImplementKeysBehaviours and in ConsoleObservable:GetLineObservable to allow @ character
|
hey @c3sxr , could you please add some tests for this bug? |
|
Hi @afucher ! |
|
Hey @c3sxr for some reason it is not reflecting any new changes here in the Pull Request 😕 |
|
Oh those files I saw, my comment was regarding adding a new test that cover the @ bug |
|
Oh you mean on the InquirerUnitTest? Sure let me include it |
|
Can you please take a look and let me know if that looks right? |
| case 'ü': | ||
| return new ConsoleKeyInfo('ü', ConsoleKey.U, false, false, false); | ||
| case '@': | ||
| return new ConsoleKeyInfo('@', ConsoleKey.D2, false, false, false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the first boolean parameter represent the shift key, and in this case it should be true. Could you check please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right the parameter shift needed to be true. Can you please review again?
Thanks!

If the digit is D2 (@ special character) then it will go back one character and the next will replace it
I included a condition to avoid this and include the @ special character as an input character