Skip to content

Commit aab973a

Browse files
authored
Merge pull request #2640 from cdr/issue-1343-control-c
doc/ipad.md: add ctrl c workaround
2 parents a4a0048 + 8f0066b commit aab973a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

doc/ipad.md

+25
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- [How to access code-server with a self signed certificate on iPad?](#how-to-access-code-server-with-a-self-signed-certificate-on-ipad)
88
- [Servediter iPad App](#servediter-ipad-app)
99
- [Raspberry Pi USB-C Network](#raspberry-pi-usb-c-network)
10+
- [Ctrl C Workaround](#ctrl-c-workaround)
1011
- [Recommendations](#recommendations)
1112
- [By 2022 iPad coding more desirable on Arm Macs](#by-2022-ipad-coding-more-desirable-on-arm-macs)
1213

@@ -28,6 +29,9 @@
2829
- Alternative: Install line-jump extension and use keyboard to nav by jumping large amount of lines
2930
- Alternative: Just use touch scrolling
3031
- See [issues tagged with the iPad label](https://github.com/cdr/code-server/issues?q=is%3Aopen+is%3Aissue+label%3AiPad) for more.
32+
- `ctrl+c` does not stop a long-running process in the browser
33+
- Tracking upstream issue here: [#114009](https://github.com/microsoft/vscode/issues/114009)
34+
- See [workaround](#ctrl-c-workaround)
3135

3236
## How to install PWA
3337

@@ -117,6 +121,27 @@ Resources worthy of review:
117121
>
118122
> -- <cite>[Acker Apple](http://github.com/ackerapple/)</cite>
119123
124+
## Ctrl C Workaround
125+
126+
There is currently an issue with `ctrl+c` not stopping a running process in the integrated terminal. We have filed an issue upstream and are tracking [here](https://github.com/microsoft/vscode/issues/114009). As a temporary workaround, it works if you manually define the shortcut like so:
127+
128+
1. Open Command Palette
129+
2. Look for "Preferences: Open Keyboard Shortcuts (JSON)"
130+
3. Add this:
131+
132+
```json
133+
{
134+
"key": "ctrl+c",
135+
"command": "workbench.action.terminal.sendSequence",
136+
"args": {
137+
"text": "\u0003"
138+
},
139+
"when": "terminalFocus"
140+
}
141+
```
142+
143+
Source: [StackOverflow](https://stackoverflow.com/a/52735954/3015595)
144+
120145
## Recommendations
121146

122147
Once you have code-server accessible to your iPad a few things could help save you time:

0 commit comments

Comments
 (0)