I'm currently doing a lot of chemistry writing in Google Docs. Google Docs is great for it because Cmd+. formats as superscript and Cmd+, formats as subscript… both of which supersaturate chemical writings (fear not, that's my only pun). Superscript works great, but Safari has an overriding Cmd+, which brings up Preferences-General and highlights Homepage, so subscript doesn't work. I haven't yet found a way to disable Safari's particular shortcuts, so I'm hoping someone here does.
MacOS – Disable Cmd + , in Safari
keyboardmacossafarishortcut
Best Answer
looks like this answer related to a similar problem might do the trick: https://stackoverflow.com/a/20692071/620141
in short:
EDIT: In your case, it should be:
so you should be using key code 43 with modifier 1048848
Extra help: