<html>
    <head>
      <base href="https://bugs.webkit.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Warn Before Quit"
   href="https://bugs.webkit.org/show_bug.cgi?id=170604">170604</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Warn Before Quit
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>macOS 10.12
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Platform
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>chris&#64;heavymark.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Chrome has a great feature aptly named, &quot;Warn Before Quit&quot;. It's enabled by choosing the word &quot;Chrome&quot; in the Mac Menu and then select &quot;Warn Before Quit&quot; in that dropdown.

It's been a life saver. As I use the great native app switcher shortcut &quot;CMD+Tab&quot; countless times every minute of every day to switch between apps. Unfortunately Tab is directly next to Q. So if one clicks CMD+Q it quits and app vs CMD+Tab which switches an app. In most apps this isn't too much of a big deal, since most Mac apps where you are entering content for instance will ask if you want to save the document before quitting. However of course saving a browser wouldn't make sense.

If you only have one tab open and are just surfing, you can simply reopen the browser, no big deal. However most of us have countless tabs open at once, meaning that mistaken CMD+Q vs CMD+Tab will make you lose all your tabs as well as potentially tabs you've entered content to which is now lost.

Warning when closing certainly shouldn't be default, but having an option like Chrome to warn would be wonderful. To note with Chrome if you enable that setting and press cmd+q mistakenly it will immediately popup saying hold CMD+Q to Quit. Meaning if it was a mistake you have a second to let go without losing any of your tabs, or if you hold it down within a second it will close all tabs like normal. 

Also I know you can customize shortcuts for apps in System Preferences but don't believe that allows you to have cmd+q work normally after an extended hold like above, as certainly wouldn't want to have a custom keyboard shortcut for quitting Safari in particular.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>