I\'m creating namespaced events with jquery. When I use the following function with code=112, a function, bool=false, everything works fine in FF and the F1 key submits to
Use keydown instead of keyup with preventDefault because chrome using with keydown if you used keyup chome already triggered help page.
if (e.key === "F1") { e.preventDefault(); //Do Code Here };