title: Disable F10 key in Firefox browser using javascript
body: <p>How can i disable F10 key menu bar in Firefox browser. When i working with same code for f5,f11,f12 function keys it disables corresponding browser function keys it's working but when i work with f10 it's directly focus goes to menu bar in firefox how can i disable that browser shortcut key can anyone tell me how to do this. </p>
  
  <pre><code>     function playPauseKb(event) {
           var x = event.keyCode;
           console.log(x);
          if (x == 121)//F10 paly/pause
         {
            event.data.$.preventDefault(); // this line for prevent window
            if (audio.paused) {                   
            audio.play();
            }
             else {
                    audio.pause()
                  }
          } }
  </code></pre>