Deprecated: Creation of dynamic property c2c_AddAdminCSS::$admin_options_name is deprecated in /var/www/html/wp-content/plugins/add-admin-css/c2c-plugin.php on line 106 Deprecated: Creation of dynamic property c2c_AddAdminCSS::$config is deprecated in /var/www/html/wp-content/plugins/add-admin-css/c2c-plugin.php on line 106 Deprecated: Creation of dynamic property c2c_AddAdminCSS::$disable_contextual_help is deprecated in /var/www/html/wp-content/plugins/add-admin-css/c2c-plugin.php on line 106 Deprecated: Creation of dynamic property c2c_AddAdminCSS::$disable_update_check is deprecated in /var/www/html/wp-content/plugins/add-admin-css/c2c-plugin.php on line 106 Deprecated: Creation of dynamic property c2c_AddAdminCSS::$hook_prefix is deprecated in /var/www/html/wp-content/plugins/add-admin-css/c2c-plugin.php on line 106 Deprecated: Creation of dynamic property c2c_AddAdminCSS::$form_name is deprecated in /var/www/html/wp-content/plugins/add-admin-css/c2c-plugin.php on line 106 Deprecated: Creation of dynamic property c2c_AddAdminCSS::$menu_name is deprecated in /var/www/html/wp-content/plugins/add-admin-css/c2c-plugin.php on line 106 Deprecated: Creation of dynamic property c2c_AddAdminCSS::$name is deprecated in /var/www/html/wp-content/plugins/add-admin-css/c2c-plugin.php on line 106 Deprecated: Creation of dynamic property c2c_AddAdminCSS::$nonce_field is deprecated in /var/www/html/wp-content/plugins/add-admin-css/c2c-plugin.php on line 106 Deprecated: Creation of dynamic property c2c_AddAdminCSS::$settings_page is deprecated in /var/www/html/wp-content/plugins/add-admin-css/c2c-plugin.php on line 106 Deprecated: Creation of dynamic property c2c_AddAdminCSS::$show_admin is deprecated in /var/www/html/wp-content/plugins/add-admin-css/c2c-plugin.php on line 106 Deprecated: Creation of dynamic property c2c_AddAdminCSS::$textdomain is deprecated in /var/www/html/wp-content/plugins/add-admin-css/c2c-plugin.php on line 106 Deprecated: Creation of dynamic property c2c_AddAdminCSS::$textdomain_subdir is deprecated in /var/www/html/wp-content/plugins/add-admin-css/c2c-plugin.php on line 106 Deprecated: Creation of dynamic property c2c_AddAdminCSS::$author_prefix is deprecated in /var/www/html/wp-content/plugins/add-admin-css/c2c-plugin.php on line 109 Deprecated: Creation of dynamic property c2c_AddAdminCSS::$id_base is deprecated in /var/www/html/wp-content/plugins/add-admin-css/c2c-plugin.php on line 110 Deprecated: Creation of dynamic property c2c_AddAdminCSS::$options_page is deprecated in /var/www/html/wp-content/plugins/add-admin-css/c2c-plugin.php on line 111 Deprecated: Creation of dynamic property c2c_AddAdminCSS::$plugin_basename is deprecated in /var/www/html/wp-content/plugins/add-admin-css/c2c-plugin.php on line 112 Deprecated: Creation of dynamic property c2c_AddAdminCSS::$plugin_file is deprecated in /var/www/html/wp-content/plugins/add-admin-css/c2c-plugin.php on line 113 Deprecated: Creation of dynamic property c2c_AddAdminCSS::$plugin_path is deprecated in /var/www/html/wp-content/plugins/add-admin-css/c2c-plugin.php on line 114 Deprecated: Creation of dynamic property c2c_AddAdminCSS::$u_id_base is deprecated in /var/www/html/wp-content/plugins/add-admin-css/c2c-plugin.php on line 115 Deprecated: Creation of dynamic property c2c_AddAdminCSS::$version is deprecated in /var/www/html/wp-content/plugins/add-admin-css/c2c-plugin.php on line 116 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/plugins/add-admin-css/c2c-plugin.php:106) in /var/www/html/wp-includes/rest-api/class-wp-rest-server.php on line 1768 {"id":97,"date":"2021-09-30T13:44:06","date_gmt":"2021-09-30T06:44:06","guid":{"rendered":"https:\/\/erwin.co\/?p=97"},"modified":"2022-07-05T18:29:53","modified_gmt":"2022-07-05T11:29:53","slug":"customizing-firefox-shortcut-keys-get-rid-of-ctrl-shift-c-devtools-inspector-shortcut","status":"publish","type":"post","link":"https:\/\/erwin.co\/customizing-firefox-shortcut-keys-get-rid-of-ctrl-shift-c-devtools-inspector-shortcut\/","title":{"rendered":"Customizing Firefox shortcut keys… Get rid of CTRL + SHIFT + C devtools inspector shortcut"},"content":{"rendered":"\n

Firefox used to have some plugins that you could use to customize your command keys pretty easily, but as Firefox has evolved recently, many of the XUL generation of shortcut keys has been disabled.<\/p>\n\n\n\n

It's very easy to rebuild Firefox to support the keys that you want though. First, you'll want to run once to build the initial \"key-shortcuts.properties\" file.<\/p>\n\n\n\n

On Linux, the relative file path is:<\/p>\n\n\n\n

obj-x86_64-pc-linux-gnu\/dist\/bin\/browser\/chrome\/en-US\/locale\/en-US\/devtools\/startup\/key-shortcuts.properties<\/code><\/p>\n\n\n\n

Open key-shortcuts.properties<\/code>, you'll find it in:
Then you'll want to change the default C<\/code> shortcut key that conflicts with my terminal muscle memory of CTRL+C<\/code> to interrupt, and Shift<\/kbd> + Ctrl<\/kbd> + C<\/kbd> as Copy...<\/p>\n\n\n\n

# LOCALIZATION NOTE (inspector.commandkey):\n# Key pressed to open a toolbox with the inspector panel selected\ninspector.commandkey=M<\/code><\/pre>\n\n\n\n

The full workflow is...<\/p>\n\n\n\n

# Grab the friendly mozilla build bootstrapper\ncd ~\/SourceInstall\n\ncurl https:\/\/hg.mozilla.org\/mozilla-central\/raw-file\/default\/python\/mozboot\/bin\/bootstrap.py -O\n\n# Run the bootstrap script\npython3 bootstrap.py\n\n# Do a test build to make sure it works\n.\/mach build\n\n.\/mach run\n\n# edit file you want to change\n\n.\/mach build\n\n.\/mach run\n\n# test your shortcut now works...\n\ncd ~\/SourceInstall\/mozilla-unified\/obj-x86_64-pc-linux-gnu\/dist\/bin\n\n# or link to anywhere else in your path that\n# will have higher precedence than \/usr\/bin\n\nsudo ln -s $HOME\/SourceInstall\/mozilla-unified\/obj-x86_64-pc-linux-gnu\/dist\/bin\/firefox \/usr\/local\/bin\/firefox<\/code><\/pre>\n\n\n\n

Enjoy beginning to really customize Firefox... Hopefully for you this is the beginning of more meaningful Firefox hacking than just editing a config file.<\/p>\n","protected":false},"excerpt":{"rendered":"

Firefox used to have some plugins that you could use to customize your command keys pretty easily, but as Firefox has evolved recently, many of the XUL generation of shortcut keys has been disabled. It’s very easy to rebuild Firefox to support the keys that you want though. First, you’ll want to run once to […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[15],"tags":[],"_links":{"self":[{"href":"https:\/\/erwin.co\/wp-json\/wp\/v2\/posts\/97"}],"collection":[{"href":"https:\/\/erwin.co\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/erwin.co\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/erwin.co\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/erwin.co\/wp-json\/wp\/v2\/comments?post=97"}],"version-history":[{"count":3,"href":"https:\/\/erwin.co\/wp-json\/wp\/v2\/posts\/97\/revisions"}],"predecessor-version":[{"id":100,"href":"https:\/\/erwin.co\/wp-json\/wp\/v2\/posts\/97\/revisions\/100"}],"wp:attachment":[{"href":"https:\/\/erwin.co\/wp-json\/wp\/v2\/media?parent=97"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/erwin.co\/wp-json\/wp\/v2\/categories?post=97"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/erwin.co\/wp-json\/wp\/v2\/tags?post=97"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}