บทวิจารณ์สำหรับ Disable Ctrl-Q and Cmd-Q
Disable Ctrl-Q and Cmd-Q โดย Rob W
บทวิจารณ์โดย ผู้ใช้ Firefox 10505403
ได้รับการจัดอันดับ 4 จาก 5
โดย ผู้ใช้ Firefox 10505403, 8 ปีที่แล้วDoes 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.
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.
การตอบกลับของนักพัฒนา
โพสต์เมื่อ 8 ปีที่แล้วThe 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)
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)
88 บทวิจารณ์
- ได้รับการจัดอันดับ 1 จาก 5โดย Itay, 2 เดือนที่แล้วNo need for this! You can do on Firefox 87+ versions:
about:config
THEN:
browser.quitShortcut.disabled = true - ได้รับการจัดอันดับ 5 จาก 5โดย ผู้ใช้ Firefox 18730413, 2 เดือนที่แล้ว
- ได้รับการจัดอันดับ 1 จาก 5โดย Евгений, 3 ปีที่แล้ว
- ได้รับการจัดอันดับ 2 จาก 5โดย LucasPestana, 3 ปีที่แล้ว> Instead of this add-on, visit "about:config" and set "browser.quitShortcut.disabled" to "true" to disable Ctrl+Q/Cmd+Q.
Since many users reported your extension didn't work for them, I went straight for this setting instead. It works perfectly, thank you for this plain instruction, Rob W.
I'd also recommend y'all to read THIS instead: https://superuser.com/a/1352295/599625 -- instructions on how to neutralize Ctrl+Q (and Ctrl+Shift+Q) for numerous versions of Firefox for Linux and Windows.
Note: apparently, this preference also neutralizes Cmd+Q (⌘Q) for Firefox on macOS too, hooray! https://news.ycombinator.com/item?id=29081356#29082023
However, it appears Ctrl+Shift+Q could still appears as a global Quit shortcut in the drop-down menu (I am a Windows user, running Firefox Developer Edition, currently at version 102); I just tested it prior to disabling the preference above: there are no prompts, no warnings, nothing. The whole browser simply closes rather abruptly.
Please try to make your extension disable Ctrl+Shift+Q as well.การตอบกลับของนักพัฒนา
โพสต์เมื่อ 3 ปีที่แล้วAfter changing the preference via about:config, the browser must be restarted for it to be fully effective. If that does not work, then you should file a bug report at bugzilla.mozilla.org - ได้รับการจัดอันดับ 1 จาก 5โดย Hutch, 4 ปีที่แล้วDoes not seem to work on Windows 10, Firefox 85.0.2. I installed the add-on and tried Ctrl+Shift+Q...and my browser closed. I thought, okay, maybe it needs a restart to work. So I opened it back up and tried it again...same thing. I was on a regular web page when I tried it, not a special browser page (which I think add-ons don't normally work on).
If I did something wrong or if this is fixed, let me know, and I'll change my rating. - ได้รับการจัดอันดับ 1 จาก 5โดย Aria, 5 ปีที่แล้ว
- ได้รับการจัดอันดับ 5 จาก 5โดย ผู้ใช้ Firefox 15309485, 5 ปีที่แล้ว
- ได้รับการจัดอันดับ 5 จาก 5โดย Sergey Yaskov, 5 ปีที่แล้วThank you for the extension. Works well on macOS Catalina.
- ได้รับการจัดอันดับ 5 จาก 5โดย MorningAltair, 5 ปีที่แล้วWorks as described. MacOS Catalina + Firefox 76.
- ได้รับการจัดอันดับ 1 จาก 5โดย jake, 5 ปีที่แล้วDoesn't work on linux. you say to read the description if you're on linux but there's nothing there
- ได้รับการจัดอันดับ 5 จาก 5โดย ผู้ใช้ Firefox 14672653, 5 ปีที่แล้วDoes work on my Firefox 73.0.1 on MacOS Catlina.
- ได้รับการจัดอันดับ 5 จาก 5โดย Vishwa, 6 ปีที่แล้ว
- ได้รับการจัดอันดับ 5 จาก 5โดย ผู้ใช้ Firefox 14691725, 6 ปีที่แล้ว
- ได้รับการจัดอันดับ 5 จาก 5โดย Mikmikmik, 6 ปีที่แล้วAbsolute essential Add-on ! Works perfectly reliable !
- ได้รับการจัดอันดับ 5 จาก 5โดย GG, 6 ปีที่แล้วWorks as expected on macOS, the shortcut no longer quits Firefox.
On GNU/Linux it doens't work as stated in the description, until upstream adds the necessary APIs. - ได้รับการจัดอันดับ 1 จาก 5โดย ผู้ใช้ Firefox 14462028, 6 ปีที่แล้วDoesn't work. Ctrl-q still quits Firefox 62.0.2.