Page 2 of 3

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

Posted: Mon Dec 09, 2024 3:42 pm
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.

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

Posted: Tue Dec 10, 2024 12:57 pm
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.

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

Posted: Tue Dec 10, 2024 2:50 pm
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

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

Posted: Wed Dec 11, 2024 7:59 am
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?

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

Posted: Wed Dec 11, 2024 10:20 am
by salvadordf
Chromium decides which menu items are included by default in that context menu.

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

Posted: Thu Dec 12, 2024 6:16 am
by coater
If there some way to activate context menu of text for copy or past in devtools.

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

Posted: Thu Dec 12, 2024 3:24 pm
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.

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

Posted: Fri Dec 13, 2024 11:54 am
by coater
2.Modifying Chromium's source code and building a custom version of the CEF binaries.

How to add menu? Thank you!

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

Posted: Fri Dec 13, 2024 5:25 pm
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.

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

Posted: Sat Dec 14, 2024 2:51 am
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. :(