feat: add Ctrl+Alt key remapping for browser-blocked shortcuts #501

Merged
ZacharyZcR merged 1 commits from feat/ctrl-alt-key-remap into dev-1.10.1 2026-01-13 05:58:14 +00:00
ZacharyZcR commented 2026-01-12 23:39:54 +00:00 (Migrated from github.com)

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+WCtrl+W (nano search, delete word)
  • Ctrl+Alt+TCtrl+T (transpose chars)
  • Ctrl+Alt+NCtrl+N (next line)
  • Ctrl+Alt+QCtrl+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

## 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
Sign in to join this conversation.