简体   繁体   中英

How do I override Firefox keybindings in javascript?

I am writing an HTML5 application with some custom keybindings. I want to use F3 as a keybinding to do some work in my application. However in Firefox, F3 opens up the search box. Does anyone know how to override (or remove) default keybindings from javascript?

It seems to me that the bindings for the F1-F5 keys cannot be replaced. I moved to using F8 and everything is working now. If someone is interested in the code, I can post a snippet (just leave a comment below).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM