24

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?

6 Answers 6

11

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.

4
  • 2
    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, 2020 at 10:07
  • I agree, it was free at the time. Aug 2, 2020 at 11:02
  • From what I'm seeing, the app is free and open source. What am I missing ?
    – KaKi87
    May 26, 2023 at 16:12
  • doesnt make any sense Jan 17 at 16:07
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

3
  • as of 2018 the Shortcut Manager is not there anymore, you can try shortkeys but it has a very small user base. Jan 2, 2018 at 20:05
  • Shortcut Manger is back as of October 2019.
    – jhclark
    Oct 10, 2019 at 17:19
  • @jhclark Shortcut Manager appears to have disappeared again. May 18, 2021 at 2:48
2

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)

2

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
1

disable-keyboard-shortcut

This is super simple and elegant. It uses the Chrome builtin extension shortcuts menu chrome://extensions/shortcuts and adds shortcuts that do nothing. Only works for shortcuts including ctrl or alt.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .