Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Cannot copy and paste between windows in Windows 11 #4

Open
miracle777 opened this issue Mar 7, 2024 · 11 comments
Open

Cannot copy and paste between windows in Windows 11 #4

miracle777 opened this issue Mar 7, 2024 · 11 comments

Comments

@miracle777
Copy link

I am on Windows 11 and use Microsoft Edge.
I cannot copy text in the Puter app and paste it into the Windows 11 app.
I am not good at English, so I tried to translate by copying the text in the Puter window and pasting it into the DeepL window, which works in Windows 11.
But I couldn't copy and paste.

And vice versa, I could not paste the text from the Windows 11 application into the Puter window.

Please let me know how to solve the problem.

@jelveh
Copy link
Contributor

jelveh commented Mar 7, 2024

Thank you for the bug report!
Where in Puter were you trying to paste the text into?

@miracle777
Copy link
Author

Thank you very much.
I have now copied the text from the Windows app to my Puter notepad.

The first thing I tried was to paste the text, into Terminal

@KernelDeimos
Copy link
Collaborator

The first thing I tried was to paste the text, into Terminal

Is this only happening for the Terminal app?

@miracle777
Copy link
Author

Sorry, I'm sorry, I'm not sure what to do.
I have only just started using it and have not tried it with more than one application.
In Notepad, I was able to paste.
In Terminal, I can't seem to paste.

@jelveh
Copy link
Contributor

jelveh commented Mar 7, 2024

I have the same issue, I can't paste text into the Terminal

@miracle777
Copy link
Author

Text could not be pasted from the Puter notepad to the terminal.
Not being able to paste text into the terminal is inconvenient, but I would like to enter it manually as an opportunity to learn the commands.

@jelveh
Copy link
Contributor

jelveh commented Mar 7, 2024

Ctrl + Shift + V will paste it. But I think it would be better if we had the same keyboard shortcuts as the host environment. Even I got confused right now.

@miracle777
Copy link
Author

Thank you very much.
I have now been able to paste it.
Thank you for your help.

@KernelDeimos
Copy link
Collaborator

The trouble with using Ctrl+V for paste is that this sequence also has special meaning for terminal emulators; it instructs the terminal to enter the next input literally, which is sometimes useful. For example if you want to input ETX (0x03) you would type Ctrl+V,Ctrl+C.

What we could do is reverse these - make Ctrl+Shift+V used for literal inputs and Ctrl+V used for paste.

Also I'm going to move this issue to the repository for the terminal app.

@KernelDeimos KernelDeimos transferred this issue from HeyPuter/puter Mar 7, 2024
@lucj
Copy link

lucj commented Mar 11, 2024

Hi, on MacOS I can copy from the host and paste into the NotePad application, but I cannot do the same in the Terminal app.

@AtkinsSJ
Copy link
Contributor

I'm seeing two issues:

  1. Neither Ctrl-V or Ctrl-Shift-V work for me on Firefox.
  2. "Paste" in the context menu also doesn't work. That's probably an xterm.js issue?

For 1, that's an issue with navigator.clipboard.readText() having patchy support in different browsers. Though if we reversed the shortcuts as @KernelDeimos suggested, we could probably get by that by just not consuming the key events when Ctrl-V is pressed, and letting the browser handle it normally. Though 2 suggests that might still not work.

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

No branches or pull requests

5 participants