Search code examples
javascriptjquerymacosfirefoxeventtrigger

How can I trigger cmd+h using Mac OS and firefox?


I am using Firefox (3-6) and need to trigger cmd+h (minimize application) using Mac OS. But I am not able to get it to work.

Problem here is that I am using a rte (this rte uses an iframe) and that one is catching shortcuts. I can get the original event and I tried to call a js-function on the parent window. But I am not able to get it working.

Anyone got any advice for me?


Solution

  • CMD+H is an OS shortcut for mac and can therefor never be triggered using simple javascript. The only way would be to write an own firefox addOn with this functionality.