-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
preventDefault for F5 - F8 and Backspace? #3
Comments
I'm not a fan of blocking all keyboard shortcuts but maybe this is the right time to do it. I'll put it in and see if it causes any issues. |
Okay, preventing default on all keypresses was a disaster. Limiting it to Backspace and F1/F5 for now. What is the purpose for mapping F5-F8 to numpad? |
oh, didn't realize you prevent default on all keypresses. I wrote a tampermonkey script to prevent it only for f1, f5, and backspace and haven't have any issue. F5-F8 were used as hotkey to switch skills. As you would suspect, only f6 and f8 work flawlessly, f5 will refresh the page and f7 will call out a firefox window. |
I tried using
|
Ah, right. Thought you meant mapping the other way. Extended it to F1-F8 plus backspace. |
Maybe we shall add preventDefault() on F5 and Backspace and also map F5-F8 to keypad num keys?
The text was updated successfully, but these errors were encountered: