Global Hotkey for Firefox

Is there a way to add hotkeys (like multimedia buttons) for a web browser?

This should trigger a javascript event.

I, in addition to the firefox extension, is required, and I'm fine if greasemonkey is also required for the solution (I saw how the growl uses them as for interacting with javascript. But thats javascript-> pc is not the other way around)

-edit- is this not possible ATM?

+4
source share
1 answer

Firefox supports something called the AppCommand event. On Windows and Linux, only 7 commands are supported: Back, Forward, Reload, Stop, Search, Bookmarks and Home.

To implement additional commands, the supported ones must be added to widget/src/windows/nsWindow.cpp and widget/src/gtk2/nsWindow.cpp to create additional types of AppCommand events. These events can then be intercepted by the extension to perform custom actions.

Android supports a different set of events: Clear, VolumeUp, VolumeDown, Menu, Search. I do not know if these events are used by Fennec.

To complete OS / 2, Firefox builds support Back, Forward, Reload, and Stop.

+2
source

Source: https://habr.com/ru/post/1315543/


All Articles