A simple extension to capture Ctrl+W and send keyboard event to xterm to avoid closing the tab accidentally.
xterm-ctrl-w-capture Extension
1. Install this extension
2. Go to extension shortcut configuration page of your browser
edge://extensions/shortcuts for Edge
chrome://extensions/shortcuts for Chrome
3. Find this extension and configure \"Capture ctrl+w\" command's keyboard shortcut to \"Ctrl + W\"
Source Manifest.json
Similar Extensions
Undo Closed Tabs 2.0 20 10 ★ 55.7KiB
Duplicate Tab 20 7 ★ 9.05KiB
Panic Button 20 31 ★ 8.45KiB
Disable keyboard shortcuts 20 162 ★ 6.29KiB
Keyboard shortcuts to manage Chrome tabs 20 28 ★ 295KiB
Fullscreen 20 15 ★ 4.79KiB
Previous Tab 20 116 ★ 470KiB
Print! - Print button 20 3 ★ 47.83KiB
Notepad 20 1 ★ 39.17KiB
Keyboard Shortcuts to Close Other/Right Tabs 20 73 ★ 4.03KiB
Copy HTML 20 5 ★ 117KiB
Copy All URLs (Free) 20 9 ★ 24.68KiB
Switch between recent tabs (MRU tabs switch) 20 36 ★ 76.57KiB
Open Last Tab 20 4 ★ 94.04KiB
Keyboard Shortcuts 20 99 ★ 33.04KiB
Custom Chrome - Extension Manager 20 189 ★ 1.31MiB
Change Tab Shortcut 20 5 ★ 158KiB
Ctrl Zoom 20 11 ★ 41.45KiB
Spanish Characters Extension 20 2 ★ 823KiB
Ctrl+Tab MRU 20 116 ★ 15.2KiB
Go to tab making sound keyboard shortcut 20 1 ★ 11.46KiB
Block Ctrl W 20 4 ★ 16.26KiB
Lazy Chrome 20 6 ★ 85.15KiB
Disable Browser Shortcuts 20 0 ★ 60.04KiB