Add broadcast input mode for multi-session typing

Broadcast mode sends keystrokes from the active terminal to all other
connected sessions simultaneously. Useful for applying the same
commands across multiple servers.

- Toggle via Ctrl+Shift+B keyboard shortcut or broadcast button in tab bar
- Visual indicator: broadcast button pulses red when active
- Only sends to sessions in 'connected' state
- Notification on toggle
- State stored in app state object
This commit is contained in:
2026-04-17 00:00:00 +01:00
parent 79e6f20d3f
commit 9cf2010c70
5 changed files with 87 additions and 0 deletions
+3
View File
@@ -25,6 +25,9 @@ class State {
/** @type {boolean} */
this.secretStoreInitialised = false;
/** @type {boolean} Whether broadcast mode is active (keystrokes to all sessions). */
this.broadcastMode = false;
/** @type {Map<string, Set<Function>>} event name → callbacks */
this._listeners = new Map();
}