开发者

Global Hotkey for Firefox

开发者 https://www.devze.com 2023-01-07 16:11 出处:网络
Is there a way to add hotkeys (such as the media buttons) for the webbrowser? This开发者_Go百科 would need to cause a javascript event.

Is there a way to add hotkeys (such as the media buttons) for the webbrowser?

This开发者_Go百科 would need to cause a javascript event.

I except a firefox extension is required and i am ok if the solution requires greasemonkey as well (i seen growl use them both for javascript interaction. But thats javascript->pc not the other way around)

-edit- is this not possible ATM?


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

To implement extra commands, supported would have to be added to widget/src/windows/nsWindow.cpp and widget/src/gtk2/nsWindow.cpp to generate those additional types of AppCommand event. These events could then be intercepted by an extension to perform custom actions.

On Android, a different set of events are supported: Clear, VolumeUp, VolumeDown, Menu, Search. I don't know whether these events are used by Fennec.

For completeness, OS/2 builds of Firefox support Back, Forward, Reload and Stop.

0

精彩评论

暂无评论...
验证码 换一张
取 消