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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

How to activate right click menu to copy or paste menu in devtools.

User avatar
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.

Post by salvadordf »

It seems like you're using a high DPI monitor.

Please, try using a 100% scale in your screen settings to see if the context menu appears in the right position.

I just tested the DevTools in the MiniBrowser demo with a 125% screen scale and the context menu is in the right position. I use Delphi 12.
coater
Posts: 210
Joined: Sat Sep 29, 2018 1:51 pm

Re: How to activate right click menu to copy or paste menu in devtools.

Post by coater »

Not because of that.
I can have menu like the below. But if I selet a text such as in deltools that was typed or in an element, I cannot get menu such as copy and past.
You do not have the required permissions to view the files attached to this post.
User avatar
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.

Post by salvadordf »

Perhaps this is caused by the paste protection in the DevTools that was enabled by default several months ago.
https://developer.chrome.com/blog/new-in-devtools-120
coater
Posts: 210
Joined: Sat Sep 29, 2018 1:51 pm

Re: How to activate right click menu to copy or paste menu in devtools.

Post by coater »

But I still use "109.1.18+gf1c41e4+chromium-109.0.5414.120"
I can use ctrl+V or C, but just cannot use mouse menu.
Is that menu was controlled by itself?
User avatar
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.

Post by salvadordf »

Chromium decides which menu items are included by default in that context menu.
coater
Posts: 210
Joined: Sat Sep 29, 2018 1:51 pm

Re: How to activate right click menu to copy or paste menu in devtools.

Post by coater »

If there some way to activate context menu of text for copy or past in devtools.
User avatar
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.

Post by salvadordf »

I only know of two ways to enable pasting in the devtools :
  1. Typing in console "allow pasting" and hit enter.
    https://stackoverflow.com/questions/77671024/how-to-re-enable-paste-protection-in-chrome-console
  2. Modifying Chromium's source code and building a custom version of the CEF binaries.
coater
Posts: 210
Joined: Sat Sep 29, 2018 1:51 pm

Re: How to activate right click menu to copy or paste menu in devtools.

Post by coater »

2.Modifying Chromium's source code and building a custom version of the CEF binaries.

How to add menu? Thank you!
You do not have the required permissions to view the files attached to this post.
User avatar
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.

Post by salvadordf »

I'm sorry but I'm not a c++ developer and modifying Chromium's code is outside the scope of the CEF4Delphi project.
coater
Posts: 210
Joined: Sat Sep 29, 2018 1:51 pm

Re: How to activate right click menu to copy or paste menu in devtools.

Post by coater »

But the problem is why it cannot have this menu when a text is selected in console and right click was done by create devtools in cef4.
BriskBard and chrome all can have this menu when a text is selected in console and right click was done. :(
Post Reply