Skip to content
This repository was archived by the owner on Dec 11, 2019. It is now read-only.

Warn Before Quitting feature #1515

Closed
LewisJEllis opened this issue Apr 30, 2016 · 10 comments
Closed

Warn Before Quitting feature #1515

LewisJEllis opened this issue Apr 30, 2016 · 10 comments
Labels
fixed-with-brave-core This issue will automatically resolved with the replacement of Muon with Brave Core. suggestion wontfix

Comments

@LewisJEllis
Copy link

LewisJEllis commented Apr 30, 2016

Sometimes my fingers are careless and hit Cmd+Q when I wanted to hit Cmd+W, and then instead of one tab going away, they all go away. Since tabs reopen automatically, this isn't a catastrophic exit, but it's still a nuisance since I rarely ever actually want to exit my browser.

Chrome has a lovely setting for avoiding this called "Warn Before Quitting". It's enabled here:

When you hit Cmd+Q with it enabled, you get this little overlay message telling you to hold Cmd+Q down for a second if you really mean it:

A similar option in Brave would be wonderful; it's almost the only thing I miss about Chrome.

I've not worked with Electron before, but I know my way around Node and the codebase looks pretty friendly - a couple quick searches already found most of the relevant pieces to this feature - so I'd be happy to try a PR with some guidance.

I'm specifically unsure about two things:

  • whether there are other places in Brave already using this kind of overlay message which this feature should follow, and if not, how a pattern for that might be established.
  • whether to put the toggle in the main menu like Chrome, or in the preferences menu instead
@diracdeltas
Copy link
Member

Hi Lewis!

whether there are other places in Brave already using this kind of overlay message which this feature should follow, and if not, how a pattern for that might be established.

We are not using overlay messages yet. You could either add a new React component that is absolute-positioned in the middle of the window (something like js/components/overlayMessage.js) and have it appear when cmd+Q is pressed, or use an existing component. js/components/notificationBar.js might be suitable. Or a standard HTML desktop notification: https://developer.mozilla.org/en-US/docs/Web/API/notification

whether to put the toggle in the main menu like Chrome, or in the preferences menu instead

Note that the $APP_NAME menu doesn't exist on non-OSX systems, so it would probably go in the File menu for Linux / Windows. I feel like preferences is better but lack a strong opinion.

Happy to help with any further questions.

@alexwykoff
Copy link
Contributor

+1 from support

@luixxiul luixxiul added this to the Backlog milestone Dec 27, 2016
@srirambv
Copy link
Collaborator

srirambv commented May 9, 2017

@bsclifton @bbondy Could this be moved back to 1.0? This is a must have feature.

@LaurenWags
Copy link
Member

@bbondy bbondy removed this from the Backlog milestone Oct 19, 2017
@cezaraugusto cezaraugusto added this to the Triage Backlog milestone Nov 8, 2017
@LaurenWags
Copy link
Member

@eljuno
Copy link
Contributor

eljuno commented Nov 16, 2017

@eljuno
Copy link
Contributor

eljuno commented May 3, 2018

@mileung
Copy link

mileung commented Jun 15, 2018

A work around for now is to reconfigure the keyboard shortcut for quitting Brave.

screen shot 2018-06-15 at 3 44 27 pm

@enthooz
Copy link

enthooz commented Jul 16, 2018

@LewisJEllis — Did you implement this feature?

@bsclifton bsclifton added the fixed-with-brave-core This issue will automatically resolved with the replacement of Muon with Brave Core. label Jul 25, 2018
@bsclifton bsclifton removed this from the Triage Backlog milestone Jul 25, 2018
@bsclifton
Copy link
Member

bsclifton commented Jul 25, 2018

I verified this feature is present in Brave Core; closing this issue as wontfix (with regards to fixing it in browser-laptop/Muon)
screen shot 2018-07-24 at 11 48 58 pm

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
fixed-with-brave-core This issue will automatically resolved with the replacement of Muon with Brave Core. suggestion wontfix
Projects
None yet
Development

No branches or pull requests