18

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?

9

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.

2
  • 1
    costs 1.99 is a deal breaker. Just go to chrome extensions, shortcuts, then map ctrl+shift+c to a non intrusive extension. (ublock origin) – MeowMeow Aug 1 '20 at 10:07
  • I agree, it was free at the time. – Paweł Prażak Aug 2 '20 at 11:02
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.

2
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

2
  • 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 '19 at 17:19
1

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)

1

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.

0

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.