17

How can I disable the Keyboard Shortcut ctrl+shift+c in Google Chrome to bring up the Developer Tools console?

I find myself trying to copy+paste content from the browser and mistakenly typing ctrl+shift+c when I really want to do ctrl+c instead.

How can I disable the current keyboard binding or change ctrl+shift+c to do the same as ctrl+c in Google Chrome?

8

I've managed to make it work with shortkeys:

  • Keyboard shortcut: ctrl+shift+c
  • Behavior: Run JavaScript
  • Javascript code to run: document.execCommand('copy')

Then just hit Save and reload tabs for the new setting to take effect.

6

Edit:

The originally suggested solution is no longer available.

The one provided by Paweł Prażak currently work and actually copies the text to the clipboard.


I was able to successfully override the Ctrl+Shift+C shortcut by using the Shortcut Manager extension and creating a new shortcut for the key combination.

You can then reassign it to trigger a host of pre-configured actions, or any javascript / bookmarklet code of your choosing. I don't really have any experience with javascript, so I can't really figure out how to make it act like Ctrl+C, but as far simply preventing it from bringing up the Developer Tools console, simply setting it to execute:

<script></script>

seems to work.

5

You can do that with Shortcut Manager and document.execCommand('copy') command, which were added to Google Chrome 43+ (~April 2015)

enter image description here

  • as of 2018 the Shortcut Manager is not there anymore, you can try shortkeys but it has a very small user base. – Paweł Prażak Jan 2 '18 at 20:05
  • Shortcut Manger is back as of October 2019. – jhclark Oct 10 at 17:19
0

After attempting the shortkeys (Chrome Extension) approach and finding it unreliable, I was able to solve this problem using AutoKey.

First, sudo apt install autokey-gtk. Then, launch AutoKey, create a new script, set the Hotkey to be Ctrl+Shift+C, the window filter to be chromium-browser.Chromium-browser, and the script contents to be keyboard.send_keys('Ctrl+C').

Once the script is saved, pressing Ctrl+Shift+C in Chromium will copy to the system clipboard instead of displaying the dev tools.

The above suggestion from @Ollin worked for me but I had to change the Window Filter to: google-chrome.Google-chromeon Ubuntu 18.04.03 LTS

(Sorry don't have comment power)

New contributor
Nick Korostelev is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
0

After attempting the shortkeys (Chrome Extension) approach and finding it unreliable, I was able to solve this problem using AutoKey.

First, sudo apt install autokey-gtk. Then, launch AutoKey, create a new script, set the Hotkey to be Ctrl+Shift+C, the window filter to be chromium-browser.Chromium-browser, and the script contents to be keyboard.send_keys('<kbd>Ctrl</kbd>+<kbd>C</kbd>').

Once the script is saved, pressing Ctrl+Shift+C in Chromium will copy to the system clipboard instead of displaying the dev tools.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.