CefSharp icon indicating copy to clipboard operation
CefSharp copied to clipboard

Ability to click drag/move selected/highlighted text

Open KiyaDoig opened this issue 11 years ago • 5 comments

Currently this functionality does not appear to be implemented. It should be possible to select/highlight text and then click (hold) and drag to drop/copy the text.

Any information about the amount of changes required to achieve this would also be helpful. (I.e. Are there just missing lines of code or is the current implementation blocking this functionality.)

KiyaDoig avatar Jul 29 '15 05:07 KiyaDoig

It's a little bit complicated, what your actually looking at with the WPF control is an image. Every action is forwarded to the underlying CEF browser control and new frames (images) are generated.

It's probably worth testing out the Upstream CEF demo application, cefclient, if the feature is implemented in there, then it should be relatively straight forward to port across. (Make sure to run it with the --off-screen-rendering-enabled command line param so it uses OffScreen Rendering) If not, it'll be a matter of determining if it's possible.

https://github.com/cefsharp/CefSharp/blob/master/CONTRIBUTING.md#cefsharp-vs-cef

amaitland avatar Jul 29 '15 06:07 amaitland

If you run the cef demo in with offscreen rendering enabled, click to drag copy does work, but you don't get the visual indicator. When offscreen rendering is disabled, again, click to drag works, but you also get that nice visual of the highlighted text moving with the mouse.

mmamone avatar Aug 17 '15 07:08 mmamone

If you run the cef demo in with offscreen rendering enabled, click to drag copy does work, but you don't get the visual indicator.

If that's the case then it's just a matter of someone implementing the missing features. PR's are welcome :+1:

amaitland avatar Aug 17 '15 07:08 amaitland

Already on it :)

mmamone avatar Aug 18 '15 11:08 mmamone

Great :+1:

Please make sure to read https://github.com/cefsharp/CefSharp/blob/master/CONTRIBUTING.md#pull-requestsfeature-branches

amaitland avatar Aug 18 '15 22:08 amaitland