feat: add Ctrl+Alt key remapping for browser-blocked shortcuts #501
Reference in New Issue
Block a user
Delete Branch "feat/ctrl-alt-key-remap"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Ctrl+Alt+<key>to sendCtrl+<key>to the terminalProblem
Browsers intercept certain Ctrl shortcuts (Ctrl+W closes tab, Ctrl+T opens new tab, etc.), making them unusable in the terminal. For example, pressing Ctrl+W in nano to search will close the browser tab instead.
Solution
Remap
Ctrl+Alt+<key>combinations to send the correspondingCtrl+<key>to the terminal:Ctrl+Alt+W→Ctrl+W(nano search, delete word)Ctrl+Alt+T→Ctrl+T(transpose chars)Ctrl+Alt+N→Ctrl+N(next line)Ctrl+Alt+Q→Ctrl+Q(XON flow control)Test plan
nanoCtrl+Alt+Wto trigger search (instead of closing tab)Fixes Termix-SSH/Support#407