Skip to content
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

Copy/Paste does not work from the context menu when active element is input/textArea #99126

Closed
kittaakos opened this issue Jun 2, 2020 · 1 comment
Assignees

Comments

@kittaakos
Copy link

Copy-paste does not work using the context-menu only if the focused element is either an input or a textArea.

  • VSCode Version: 1.45.1 5763d90
  • OS Version: macOS 10.15.4 (19E287)

Steps to Reproduce:

  1. Open the Search view. (Ctrl/Cmd+Shift+F)
  2. Type vscode.
  3. Right click in the input, select Copy from the context menu.
  4. Right click in the input, select Paste. Nothing happens. It should insert vscode so that the input shows vscodevscode.

Notes:

  • The copy action works as expected because I could paste with the copied content with the keybinding.
  • It is important to select the Search view, as the Source Control view wraps a monaco editor and not an input or textArea.

screencast 2020-06-02 17-32-46

Difference between the context menus:
Monaco editor based context menu (SCM, for example):
Screen Shot 2020-06-02 at 17 39 59

input/textArea-based context menu (Search view, for instance):
Screen Shot 2020-06-02 at 17 40 10


Related: #52948?

Does this issue occur when all extensions are disabled?: Yes/No

@kittaakos
Copy link
Author

I am going to close this as invalid, it works, sort of. The SCM and the Search "inputs" work differently, good to know.

screencast 2020-06-03 15-51-02

I was an idiot and expected to see the original value plus the pasted one, but it works differently; contextmenu event will set the focus and select the input value, so when I execute the paste command, it overrides the original value. This seems to be the default behavior with inputs on macOS.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 18, 2020
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

2 participants