MacOS – How to remove keyboard shortcut for app

google-chromekeyboardmacosshortcut

Specifically, I am used to typing Command1 in a WordPress admin area to specify some text as a Header 1, (and Command2 to specify Header 2), but when I do this now in Chrome, that command seems to change the current browser tab.

Is there a way to edit or remove the chrome keyboard commands so those commands will work with WordPress, (I am assuming that the Chrome commands over-ride the WordPress admin ones)?

Using an iMac running OS X Yosemite.

Best Answer

This is not a OS X problem. It's a Chrome problem.

When a browser receives a keystroke, it needs to decide whether to apply it to the webpage first or its UI/chrome(lower-case). Google Chrome chose the latter as a design decision. Firefox made the opposite choice. As a consequence, when a Firefox user tries to COMMAND+ARROW to go back/forward, he might end up flipping through slideshows on that page.

There is nothing you can do on the OS end as everything passes through browser. You can use an addon to disable specific native browser shortcuts. I know how with Firefox, not Chrome. Or you can modify the javascript embedded in wordpress site, and come up with new non-conflicting shortcuts.