-
-
Notifications
You must be signed in to change notification settings - Fork 151
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
Allow overriding ctrl-w using a webextension command #103
Comments
Hi, thanks for pointing this out, I had completely forgotten about the commands API. This API doesn't let you override what happens when you press |
According to the description of this addon, this might only be the case on Linux. Related bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1325692 |
I've implemented the ability to override |
Thanks! |
Hi :).
I've seen your guide
here https://github.com/glacambre/firenvim#drawbacks but don't
understand how to use it. The patch here
https://github.com/glacambre/firefox-patches does not have any
instructions.
This is a firefox patch, you need to apply it to Firefox's source code and then recompile Firefox. If you don't want to recompile Firefox, instructions to patch a compiled Firefox have been described here:
glacambre/firefox-patches#1
Is it possible to pass c-w mapping to firenvim when the frame is
focused? This would be preferred. Or at least intercept the browser
default behavior to close the tab so I would not loose my work? Or
maybe at least prompt for closing the tab like those annoying
confirmation dialogs some websites uses before leaving the iste?
This is not possible without patching Firefox. This is something Mozilla does on purpose. If you want this to change, you'll need to convince them on bugzilla.mozilla.org, but know that a lot of people have tried to do that over the years and that none succeeded :/.
|
Yes, you can narrow the replacement by using |
Yeah, probably :) |
https://developer.chrome.com/extensions/commands
If you create a command, then go to the extension keyboard shortcut settings and map ctrl-w to it, that will override the close tab shortcut. This may also work with firefox.
The text was updated successfully, but these errors were encountered: