@xterm/xterm 6.1.0-beta.175 → 6.1.0-beta.177

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xterm/xterm",
3
3
  "description": "Full xterm terminal, in your browser",
4
- "version": "6.1.0-beta.175",
4
+ "version": "6.1.0-beta.177",
5
5
  "main": "lib/xterm.js",
6
6
  "module": "lib/xterm.mjs",
7
7
  "style": "css/xterm.css",
@@ -119,5 +119,5 @@
119
119
  "ws": "^8.2.3",
120
120
  "xterm-benchmark": "^0.3.1"
121
121
  },
122
- "commit": "1620f8f5a8946d10d8251f67a06c5eee80d65425"
122
+ "commit": "ea50fbdd1ed765d6b3c3aa684150f5e77a9b3fd0"
123
123
  }
@@ -6,4 +6,4 @@
6
6
  /**
7
7
  * The xterm.js version. This is updated by the publish script from package.json.
8
8
  */
9
- export const XTERM_VERSION = '6.1.0-beta.175';
9
+ export const XTERM_VERSION = '6.1.0-beta.177';
@@ -99,7 +99,13 @@ export function evaluateKeyboardEvent(
99
99
  break;
100
100
  case 13:
101
101
  // return/enter
102
- result.key = ev.altKey ? C0.ESC + C0.CR : C0.CR;
102
+ if (ev.key === 'c' && ev.ctrlKey) {
103
+ // HACK: Safari on iPad, iOS, AppleVisionPro sends key 13 when typing ctrl-c on hardware
104
+ // keyboard
105
+ result.key = C0.ETX;
106
+ } else {
107
+ result.key = ev.altKey ? C0.ESC + C0.CR : C0.CR;
108
+ }
103
109
  result.cancel = true;
104
110
  break;
105
111
  case 27: