X
Нажмите здесь, чтобы перейти на мобильную версию сайта.
An updated version of Firefox is available to address the issues with Add-ons disabled or fail to install on Firefox. You can download the update for your OS here: https://www.mozilla.org/firefox/new/ For Known Issues and Workarounds, please check out the update at https://support.mozilla.org/kb/add-ons-disabled-or-fail-to-install-firefox

Форум поддержки

Change default behavior of Ctrl + Q

Размещено

Ctrl + Q is very close to Ctrl + W. It's a disaster waiting to happen.

Can we have a prompt on Ctrl + Q? I know it might be difficult to have a customizable shortcut where I can simple move Ctrl + Q to some other key. But it shouldn't be difficult to add a prompt on Ctrl + Q? Especially when multiple tabs are open.

And yes, there's a feature to start from where you left, but in some webpages, you lose the context and that really bums me out (and maybe other people too).

If someone is willing to guide me, I can make a patch for this too. I don't know where to start.

Ctrl + Q is very close to Ctrl + W. It's a disaster waiting to happen. Can we have a prompt on Ctrl + Q? I know it might be difficult to have a customizable shortcut where I can simple move Ctrl + Q to some other key. But it shouldn't be difficult to add a prompt on Ctrl + Q? Especially when multiple tabs are open. And yes, there's a feature to start from where you left, but in some webpages, you lose the context and that really bums me out (and maybe other people too). If someone is willing to guide me, I can make a patch for this too. I don't know where to start.

Выбранное решение

There have been some changes in recent versions but I'm not sure which ones apply to which configurations.

Which of these best describes your Firefox setup:

A. Default: remember history, start with home page

When you use the "Exit" or "Quit" command or keyboard shortcut, Firefox should display a warning such as "You are about to close 2 windows with 3 tabs. Are you sure you want to continue?" with "Close Tabs" and "Cancel" buttons.

There also is a checkbox for "Warn me when I attempt to close multiple tabs" which is checked by default. If you turned off the closing multiple tabs warning, this dialog won't appear and Firefox will just exit. To restore the warning:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk.

(2) In the search box above the list, type or paste warn and pause while the list is filtered

(3) If the browser.tabs.warnOnClose preference is bolded and "modified" or "user set" to false, double-click it to restore the default value of true

B. Restore previous session at startup

On the Preferences (Options) page, immediately below the "Restore previous session" checkbox there is a new-ish checkbox for "Warn you when quitting the browser". I can't recall whether this is checked by default, but you can turn it on here if needed.

C. Automatic private browsing (never remember history)

There is no quit protection for private windows or entirely private sessions. I have an experimental extension for that if you have this configuration. https://addons.mozilla.org/firefox/addon/prevent-closing-window/

Прочитайте этот ответ в контексте 1
Цитата

Дополнительные сведения о системе

Установленные плагины

  • Shockwave Flash 32.0 r0

Приложение

  • User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0

Дополнительная информация

jscher2000
  • Top 10 Contributor
8328 решений 68168 ответов
Размещено

Выбранное решение

There have been some changes in recent versions but I'm not sure which ones apply to which configurations.

Which of these best describes your Firefox setup:

A. Default: remember history, start with home page

When you use the "Exit" or "Quit" command or keyboard shortcut, Firefox should display a warning such as "You are about to close 2 windows with 3 tabs. Are you sure you want to continue?" with "Close Tabs" and "Cancel" buttons.

There also is a checkbox for "Warn me when I attempt to close multiple tabs" which is checked by default. If you turned off the closing multiple tabs warning, this dialog won't appear and Firefox will just exit. To restore the warning:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk.

(2) In the search box above the list, type or paste warn and pause while the list is filtered

(3) If the browser.tabs.warnOnClose preference is bolded and "modified" or "user set" to false, double-click it to restore the default value of true

B. Restore previous session at startup

On the Preferences (Options) page, immediately below the "Restore previous session" checkbox there is a new-ish checkbox for "Warn you when quitting the browser". I can't recall whether this is checked by default, but you can turn it on here if needed.

C. Automatic private browsing (never remember history)

There is no quit protection for private windows or entirely private sessions. I have an experimental extension for that if you have this configuration. https://addons.mozilla.org/firefox/addon/prevent-closing-window/

There have been some changes in recent versions but I'm not sure which ones apply to which configurations. Which of these best describes your Firefox setup: '''A. Default: remember history, start with home page''' When you use the "Exit" or "Quit" command or keyboard shortcut, Firefox should display a warning such as "You are about to close 2 windows with 3 tabs. Are you sure you want to continue?" with "Close Tabs" and "Cancel" buttons. There also is a checkbox for "Warn me when I attempt to close multiple tabs" which is checked by default. If you turned off the closing multiple tabs warning, this dialog won't appear and Firefox will just exit. To restore the warning: (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk. (2) In the search box above the list, type or paste '''warn''' and pause while the list is filtered (3) If the '''browser.tabs.warnOnClose''' preference is bolded and "modified" or "user set" to false, double-click it to restore the default value of true '''B. Restore previous session at startup''' On the Preferences (Options) page, immediately below the "Restore previous session" checkbox there is a new-ish checkbox for "Warn you when quitting the browser". I can't recall whether this is checked by default, but you can turn it on here if needed. '''C. Automatic private browsing (never remember history)''' There is no quit protection for private windows or entirely private sessions. I have an experimental extension for that if you have this configuration. https://addons.mozilla.org/firefox/addon/prevent-closing-window/
Помогла ли вам это? 1
Цитата

Задавший вопрос

Hi @jscher2000

Thanks a lot!!!

Option B did lead me to the new checkbox. And that solves it.

Though I liked the extension idea too. Especially for private windows. One suggestion on that: there's no easy way to choose to "Keep Window Open" later except to start a new window and copy the URL. I don't see an icon in the bar or in the extended drop down or the screen in customize.

Cheers Thanks a lot :)

Hi @jscher2000 Thanks a lot!!! Option B did lead me to the new checkbox. And that solves it. Though I liked the extension idea too. Especially for private windows. One suggestion on that: there's no easy way to choose to "Keep Window Open" later except to start a new window and copy the URL. I don't see an icon in the bar or in the extended drop down or the screen in customize. Cheers Thanks a lot :)
Помогла ли вам это?
Цитата
jscher2000
  • Top 10 Contributor
8328 решений 68168 ответов
Размещено

Hi kunaltyagi, thank you for reporting back, and the feedback on the extension. It definitely needs work, but the pile is so high!

Hi kunaltyagi, thank you for reporting back, and the feedback on the extension. It definitely needs work, but the pile is so high!
Помогла ли вам это?
Цитата
cor-el
  • Top 10 Contributor
  • Moderator
17108 решений 154524 ответов
Размещено

Полезный ответ

Note that the related sessionstore pref is this one: browser.sessionstore.warnOnQuit

Note that the related sessionstore pref is this one: <b>browser.sessionstore.warnOnQuit</b>
Помогла ли вам это? 1
Цитата

Задавший вопрос

So, I had to use chrome and I found that on MacOS, Chrome displays a Hint of "Hold Super + Q to Quit" and doesn't quit on pressing "Super + Q".

This behavior seems good to have. Destructive actions should not be able to be so easy to take. Press and hold for a second seems a conscious decision not a mistaken key-stroke. :)

So, I had to use chrome and I found that on MacOS, Chrome displays a Hint of "Hold Super + Q to Quit" and doesn't quit on pressing "Super + Q". This behavior seems good to have. Destructive actions should not be able to be so easy to take. Press and hold for a second seems a conscious decision not a mistaken key-stroke. :)
Помогла ли вам это?
Цитата
Задать вопрос

Для ответа на сообщения вы должны войти в свою учётную запись. Пожалуйста, задайте новый вопрос, если у вас ещё нет учётной записи.