Resolve "Browser keyboard shortcuts do not work on some pages"
The prevent
element of the @keydown
operations for player shortcuts interrupts the default browser action. To fix this, we can either remove the prevent
from the function or replace the @keydown
with @keyup
or @keypress
. This MR uses the former method, which allows both bespoke FW shortcuts to work as well as built-in browser functions such as ctrl+f
and ctrl+l
.
This fixes interruptions to the following shortcuts:
-
ctrl+f
for find -
ctrl+l
for URL bar focus -
ctrl+s
for save page as HTML -
ctrl+q
for closing tabs/pages on certain browsers/operating systems
Closes #340 (closed)
Closes #985 (closed)
Edited by Ciarán Ainsworth