-
Notifications
You must be signed in to change notification settings - Fork 27.3k
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
prevent alt menu for firefox #15267
prevent alt menu for firefox #15267
Conversation
5ed2d70
to
6f51e05
Compare
This is unrelated to webui and should be handled by firefox extensions. |
Why? Many web apps block this behavior because it's default for firefox. And what did you mean by firefox extensions? |
This applies globally to firefox, not to web ui. What you need is a firefox extension that will disable this globally. |
Not truth, it applies only for webui tab. E.g. photopea does the same. Look my patch, it just prevents default for alt fdhggfhg.mp4 |
I think it's very nessasary patch because it breaks zooming with default alt key. It cancels after uping alt key dfsg.mp4 |
Can anyone else confirm this? For me, alt+mouse wheel works fine in Firefox 123.0.1 (64-bit). |
Hm, maybe in windows it's disabled by default? Which variable have been set in |
The key is |
It because in your case there is no resize event |
I can reproduce the problem now, after removing the menu, but disabling entire alt key because of just zoom is not right. Plus, wouldn't the code as it is now fail if you hold alt, press another key, release another key, then release alt? |
I don't think so. I think it's okay to override browser's defaults for webapp But it's your choice. How I can apply this event listner only for image box? Maybe add event lisner on targetElement instead of document
No, I tested it, and have retested it again. If I press something after alt, and then release alt, the menu isn't opened even on other pages |
Made it, now alt is being suppressed only if the key in config is "Alt" and mouse was inside image There is one problem, if you press alt outside image, then move mouse inside, and start zooming, menu will appear. But I think nobody presses alt before move mouse inside image |
Is it not possible to check for |
Yes, it can fix it. I forget about it. Pushed |
Description
Firefox opens menu bar in the top of window "File, Edit, View, etc" by default. It can be disabled by https://support.mozilla.org/en-US/questions/1278533. But I think it's better to just prevent defaults for alt key at all
Screenshots/videos:
Checklist: