Add keyboard remapping to bypass browser-intercepted shortcuts
Users can now use Ctrl+Alt+<key> to send Ctrl+<key> to the terminal
Problem
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 corresponding Ctrl+<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
Open terminal, run nano
Press Ctrl+Alt+W to trigger search (instead of closing tab)
## Summary
- Add keyboard remapping to bypass browser-intercepted shortcuts
- Users can now use `Ctrl+Alt+<key>` to send `Ctrl+<key>` to the terminal
## Problem
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 corresponding `Ctrl+<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
- [ ] Open terminal, run `nano`
- [ ] Press `Ctrl+Alt+W` to trigger search (instead of closing tab)
- [ ] Verify the search prompt appears
Fixes Termix-SSH/Support#407
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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