We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1880da5 commit a4830d7Copy full SHA for a4830d7
src/components/terminal/terminal.js
@@ -140,6 +140,13 @@ export default class TerminalComponent {
140
return false;
141
}
142
143
+ // Check for Ctrl+C (terminate)
144
+ if (event.ctrlKey && event.key === "C") {
145
+ event.preventDefault();
146
+ this.websocket?.send("\x03");
147
+ return false;
148
+ }
149
+
150
// For app-wide keybindings, dispatch them to the app's keyboard handler
151
if (event.ctrlKey || event.altKey || event.metaKey) {
152
// Skip modifier-only keys
0 commit comments