Page 1 of 1
Disable new page / new tab shortcuts
Posted: Sat Oct 19, 2024 2:04 pm
by thefunkyjoint
Hello,
Is there a way to disable CTRL+T / CTRL+N shortcuts ? When i type these, a new page of Chromium is created outside of my app

Re: Disable new page / new tab shortcuts
Posted: Sat Oct 19, 2024 5:21 pm
by salvadordf
Hi,
Use the TChromiumCore.OnChromeCommand event and set aResult to True if command_id is IDC_NEW_WINDOW or IDC_NEW_TAB.
There are many keyboard shortcuts in Chromium that can be intercepted with TChromiumCore.OnChromeCommand.
Just set a breakpoint in that event using MiniBrowser and read the command_id value.
Re: Disable new page / new tab shortcuts
Posted: Mon Oct 21, 2024 1:09 pm
by thefunkyjoint
Thank you !
