Is there any way to disable Command+W in the terminal?
On several occasions I have accidentally closed a terminal window containing important information when I meant to close a Safari tab and did not realize that the terminal was the active window.
|
|
|
To disable ⌘W in Terminal, do the following:
|
|||||||||
|
|
You can set a prompt before closing in the preferences: Terminal Preferences → Settings → Shell
|
|||||||||
|
|
Goto Keyboard System Preferences and select "Keyboard Shortcuts". Then choose Application Shortcuts from the left and click +. Choose "Terminal.app" and enter a menu item that is not that critical. I chose "Bring All to Front". Then click into Keyboard Shortcut and hit CMD+W. Click OK. Using this technique have have successfully redirected the CMD+W shortcut in Terminal. |
|||
|
|