-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Ctrl + V (insert) does not work anymore since 2.3.3 #237
Comments
@shibayan Push |
I have not been able to reproduce this problem. In my development environment, I can paste by Ctrl+V (or Ctrl+Shift+V) or right click. |
I have debugged into your code inside my example, and I found out that the ConsoleKeyInfo.KeyChar differs, when beeing handled inside the ConfirmForm: In both tries I tried to insert "CopyText". |
Probably due to the Console.TreatControlCAsInput = true; |
Interesting, what .NET Runtime do you use? In my example I used .NET Framework 4.8, I tried it with Sharprompt 2.3.3 with .NET6, but it is still not working. I found out when I enable "Use CTRL+SHIFT+C/V" in the console window settings, pasting using CTRL+SHIFT+V works. |
That property is the only change between versions. I have not been able to reproduce this behavior, so further investigation is difficult. |
I had the same issue with inserting a secret into a secret prompt. But I could resolve the Issue when I build the project in Debug instead of Release mode. If I build the project in the release mode the insert wouldn't work. (.NET 7) Maybe this helps you with the reproducing issue |
Hi Shibayan,
I recently updated from 2.3.2 to 2.4.5 and had the problem, that a clipboard-copied text can't be pasted using CTRL + V anymore.
I found out it doesn't work anymore since 2.3.3. In 2.3.2 it is working perfectly.
Can you please have a look? Thanks!
Edit: I found this issue here: #161, but in my case it only affects CTRL + V pasting, right click pasting is still working.
The text was updated successfully, but these errors were encountered: