Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
How to activate right click menu to copy or paste menu in devtools.
How to activate right click menu to copy or paste menu in devtools.
How to activate right click menu to copy or paste menu in devtools. Now I can only use ctrl+ C or V, thank you!
Re: How to activate right click menu to copy or paste menu in devtools.
when I right click on devtools, there is no menu to copy or paste text just like chrom.
- salvadordf
- Posts: 4620
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: How to activate right click menu to copy or paste menu in devtools.
Chromium decides what elements are present in the context menu initially.
Re: How to activate right click menu to copy or paste menu in devtools.
If I select text in devtools, I click my right mouse button, there is no menu for copy or paste
but chrome does!
but chrome does!
You do not have the required permissions to view the files attached to this post.
Re: How to activate right click menu to copy or paste menu in devtools.
may you help me, thank you!
- salvadordf
- Posts: 4620
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: How to activate right click menu to copy or paste menu in devtools.
The CEF framework doesn't hide context menu elements. Chromium does.
Re: How to activate right click menu to copy or paste menu in devtools.
How to show context menu in devtools, thank you!
- salvadordf
- Posts: 4620
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: How to activate right click menu to copy or paste menu in devtools.
Try simulating mouse events with TChromiumCore.SimulateMouseEvent
https://github.com/salvadordf/CEF4Delphi/blob/a87256405aa349d6c4c13e1a5d0ce0e0f31d2d97/source/uCEFChromiumCore.pas#L965
That procedure uses the "Input.dispatchMouseEvent" DevTools method internally :
https://chromedevtools.github.io/devtools-protocol/tot/Input/#method-dispatchMouseEvent
https://github.com/salvadordf/CEF4Delphi/blob/a87256405aa349d6c4c13e1a5d0ce0e0f31d2d97/source/uCEFChromiumCore.pas#L965
That procedure uses the "Input.dispatchMouseEvent" DevTools method internally :
https://chromedevtools.github.io/devtools-protocol/tot/Input/#method-dispatchMouseEvent
Re: How to activate right click menu to copy or paste menu in devtools.
chrom will show right menu for copy and paste
this doesn't show anything by right click
this doesn't show anything by right click
You do not have the required permissions to view the files attached to this post.
Re: How to activate right click menu to copy or paste menu in devtools.
I didn't simulate mouse events but manual right click in devtools. When a text was selected and after right mouse click, chrome will show menu with copy, past, and so on, but my application will not. How to deal with this? Thank you!