Bug #60253 Mac Workbench "Close Tab" Hotkey in SQL Editor closes connection, not active tab
Submitted: 25 Feb 2011 16:22 Modified: 17 Nov 2011 18:49
Reporter: Mike Reid Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S3 (Non-critical)
Version:5.2.31, 5.2.34, 5.2.35-pre22 OS:MacOS (v10.6.6, v10.7.1)
Assigned to: CPU Architecture:Any
Tags: close, hotkey, tab, workbench

[25 Feb 2011 16:22] Mike Reid
Description:
Pressing Command+W hotkey on Workbench for Mac should allow closing individual SQL Query tabs (active tab) while in the SQL editor: 

- In Workbench on Windows, CTRL+W accomplishes this very well. 

- In Workbench on Mac, Command+W ends up closing the active connection (Tab), and all SQL Query tabs within it. 

How to repeat:
1. Open Workbench for Mac
2. Connect to database
3. Open a few SQL Query tabs
4. Press Command+W to close active SQL Query tab

5. Watch database connection get closed, including all open SQL Query tabs.

Suggested fix:
Change behavior to function like Workbench on Windows, where Command+W closes the active tab, not the active connection + tab(s).
[25 Feb 2011 16:53] Valeriy Kravchuk
Thank you for the problem report.
[7 Sep 2011 22:58] Mike Reid
Updated to account for newest 5.2.35-pre22 release, and OS X Lion.
[17 Nov 2011 18:47] Philip Olson
Fixed as of 5.2.36:
+        On Mac OS X, <keycap>Command+W</keycap> will now close the
+        active script editor tab, and <keycap>Command+Shift+W</keycap>
+        will now close the active connection tab. This is now consistent
+        with behavior on other operating systems. Before, the
+        <keycap>Command+W</keycap> combination closed the active
+        connection tab.
[17 Nov 2011 18:49] Mike Reid
Fantastic news, thank you! 

I fell "victim" to this just yesterday, losing over 15 open tabs AND the SQL.

Do you know if in 5.2.36 closing the Active Connection will at least prompt to save (confirming close) any remaining open script editor tabs?