curl -L https://gist.github.com/dangh/ffe9a735f441451f6e0c20f7e1e7c8f9/raw/group_has_transient_sheet.py -o "$HOME/Library/Application Support/Sublime Text 3/Packages/User/group_has_transient_sheet.py"
Add key binding to your .sublime-keymap
//prevent close empty window
{ "keys": ["super+w"], "command": "noop", "context":
[{ "key": "group_has_transient_sheet", "operator": "equal", "operand": true }]
},
This key binding works in ST4 without this plugin as group_has_transient_sheet
key is already provided out of the box.