Arviot lisäosalle Disable Ctrl-Q and Cmd-Q
Disable Ctrl-Q and Cmd-Q tekijä Rob W
88 arviota
- Arvioitu 3/5kirjoittanut Alex, kahdeksan vuotta sitten
- Arvioitu 5/5kirjoittanut Firefox-käyttäjä 13437330, kahdeksan vuotta sittenWorks perfectly for most use cases and is a life saver!
Obscure bug: If the history/bookmarks window is open pressing Cmd+Q closes all windows. It's a pretty rare case though. - Arvioitu 5/5kirjoittanut ZeroDragon, kahdeksan vuotta sittenthis is just what I needed, works fine in FF Dev Edition on OSX Sierra
- Arvioitu 5/5kirjoittanut intgr, kahdeksan vuotta sittenThe low ratings are unwarranted. This add-on is functional on macOS and the only one that works with Firefox Developer Edition (or Firefox version 57+). Thanks, Rob W!
The problems on Linux are unfortunate (I use Linux too), but are caused by Firefox and not the extension author's fault.Kehittäjän vastaus
lähetetty kahdeksan vuotta sittenThanks for this review. Although 1-star ratings are not ideal, they are deserved until the add-on also works for everyone.
Could you also write which OS you're using? I know that it works on macOS, and not on Linux, but I'm not sure about others. - Arvioitu 1/5kirjoittanut Firefox-käyttäjä 13241717, kahdeksan vuotta sittenThanks for trying, though.
- Arvioitu 4/5kirjoittanut caesar, kahdeksan vuotta sittenWorks well on OS X. Might be nicer if instead of simply disabling Cmd+Q it popped up a warning which then allowed pressing Cmd+Q a second time within a couple of seconds to actually quit.
- Arvioitu 4/5kirjoittanut Mathnerd314, kahdeksan vuotta sittenExcellent addon, but needs a GitHub repository or similar to manage issues (reviews are not really a good place...)
Kehittäjän vastaus
lähetetty kahdeksan vuotta sittenThe code behind this add-on is so simple* that I haven't bothered with creating a Github repository.
To get support, just mail me (see "Support E-mail" at the add-on listing for my address).
* you can view the code at https://robwu.nl/crxviewer/?crx=https%3A%2F%2Fcup.aihedy.com%2Fen-US%2Ffirefox%2Faddon%2Fdisable-ctrl-q-and-cmd-q - Arvioitu 1/5kirjoittanut LuisNabais, kahdeksan vuotta sittenDoes not work in my case.
Arch Linux x86_64
Firefox 52.0.2Kehittäjän vastaus
lähetetty kahdeksan vuotta sittenConfirmed, sorry for that, I hope that you did not accidentally lose your tabs. I have edited the add-on description to state that it does not work on Linux for now until https://bugzilla.mozilla.org/show_bug.cgi?id=1325692 is fixed.
For now, you can use https://cup.aihedy.com/en-US/firefox/addon/disable-ctrl-q-shortcut/. That add-on will cease to work by the end of this year though. Hopefully the linked bugzilla issue will be fixed by then, so you can install this add-on again to get it to work (or keep the add-on installed; although it does not work right now, it does no harm either).
If you want to manually prevent the Ctrl-Q shortcut from working, open the global JavaScript console (Ctrl-Shift-J) and run the following code. This needs to be done for every new window.
document.getElementById('key_quitApplication').remove() - Arvioitu 4/5kirjoittanut Firefox-käyttäjä 10505403, kahdeksan vuotta sittenDoes the WebExtensions API make it possible to implement a CMD-Q Catcher-like behavior - e.g. press Cmd+Q twice to quit?
EDIT (reply): I use it in Opera (which has it in its advanced options: Hold Command-Q (or press it twice) to quit Opera) and like it very much. That's why I'd like to have it here as well to keep the behavior consistent. CMD-Q Catcher does just that, but it's an old and unmaintained extension without the e10s support.Kehittäjän vastaus
lähetetty kahdeksan vuotta sittenThe add-on just overrides Ctrl-Q and ignores the keystroke. I don't know if there is a way to exxplicitly quit Firefox (I can close all open windows, but I don't know for sure whether the windows would be restored when Firefox starts again).
I believe that quitting is such a rare operation that it should not be possible to do it by accident. Two Cmd-Q presses can still be done by accident.
If you want to explicitly quit Firefox by keyboard, you can use the following shortcut:
- Linux (and Windows too, I guess): Alt + F, Q
- macOS: Fn + Ctrl + F2, Arrow right, Arrow Down, Q, Enter (Ctrl instead of Fn + Ctrl if you are not using a Mac keyboard; to enable Ctrl+F2 the menubar shortcut should be enabled, see https://superuser.com/questions/303525/what-is-the-shortcut-to-access-the-menubar-in-mac-os-x).
(by following these shortcuts, you are basically opening the menu and activating the Quit menu item)