How do I disable keyboard shortcuts?

  • 0
    I want to do something like this but I can't figure out how to disable keyboard shortcuts. Let's say that when you press F5, the page is not refreshed, or that when you press F12, the developer panel does not open. How can this be done?
    JavaScript Graham Williams, Oct 7, 2019

  • 1 Answers
  • 0
    hang up an eventListener that will listen to the key press, and then check the key code then preventDefault
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!