Fix to some shortcuts not working in Firefox.