Answer the question
In order to leave comments, you need to log in
How to catch the F key in FireFox?
With the last of my strength, I'm trying to make cross-platform sites that work not only in Chrome. Faced with the fact that I can not find a way to catch the F key press event in FireFox. Please tell me how to do this:
The following code does not catch pressing the F-buttons.
document.addEventListener('keypress', (event) =>
{
var key=event.key;
console.log("key: ", key)
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question