WebView2Feedback icon indicating copy to clipboard operation
WebView2Feedback copied to clipboard

[Problem/Bug]: Copy/paste functions not working with touchscreen

Open jamesdavidson407 opened this issue 1 year ago • 8 comments

What happened?

When I select text within a page displayed in the WebView2 control, the menu for selecting "Copy" appears but I'm unable to click on it. It just stays open until I click away. The text doesn't get copied to the clipboard as I'm not able to paste it inside or outside of the app. Selecting Ctrl+C using the touchscreen keyboard also fails to work. If I use an external keyboard or a mouse, it works fine.

Importance

Moderate. My app's user experience is affected, but still usable.

Runtime Channel

Prerelease (Edge Canary/Dev/Beta)

Runtime Version

129.0.2792.79

SDK Version

2839.0

Framework

WinUI2/UWP

Operating System

Windows 11

OS Version

22631.4317

Repro steps

  • Run the webview2_sample_uwp app from https://github.com/MicrosoftEdge/WebView2Samples on a Microsoft Surface touchscreen device with no external keyboard or mouse.
  • Select some text by long pressing on it.
  • The context menu with the clipboard options appear but I'm not able to click on them.

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Don't know

Last working version (if regression)

No response

jamesdavidson407 avatar Oct 11 '24 14:10 jamesdavidson407

Hi @jamesdavidson407,

Sorry to hear you're hitting this and thanks for trying it in prerelease!

In the dropdown that appears when you select text, I assume it's a normal context menu with multiple options besides just copy (correct me if I'm wrong). Is it only the copy button that doesn't respond? Do other menu items appear to work?

jennifer-nejad avatar Oct 15 '24 17:10 jennifer-nejad

It is a menu that shows the clipboard options with an ellipsis to open the full context menu. E.g. Cut,Copy,Paste,... None of the options work including the ellipsis, so I'm not able to open the full context menu to see if any of the other options would work.

jamesdavidson407 avatar Oct 16 '24 07:10 jamesdavidson407

Hi @jennifer-jacobs, is there any update on this?

jamesdavidson407 avatar Nov 04 '24 10:11 jamesdavidson407

Hi @jennifer-jacobs, is this being looked at?

jamesdavidson407 avatar Dec 19 '24 11:12 jamesdavidson407

@Badhri Is there a way I can keep track of the status of this issue seen as that link is not publicly visible?

jamesdavidson407 avatar Jan 23 '25 10:01 jamesdavidson407

@Badhri, any update on this?

jamesdavidson407 avatar Mar 27 '25 10:03 jamesdavidson407

In WPF using WebView2CompositionControl this is not only "not clickable", it is completely making the component not responding to any touch or mouse inputs. Basically it freezes the interaction. Is there a way to disable long-press in the browser (for text selection)?

cansik avatar Sep 08 '25 16:09 cansik