@xterm/xterm 5.6.0-beta.108 → 5.6.0-beta.109

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": "5.6.0-beta.108",
4
+ "version": "5.6.0-beta.109",
5
5
  "main": "lib/xterm.js",
6
6
  "module": "lib/xterm.mjs",
7
7
  "style": "css/xterm.css",
@@ -107,5 +107,5 @@
107
107
  "ws": "^8.2.3",
108
108
  "xterm-benchmark": "^0.3.1"
109
109
  },
110
- "commit": "8828b47cea672a232b5ccd00360e526b0c7945a4"
110
+ "commit": "4b6316e5104dc14653c1513de2d9e3790e1ecf19"
111
111
  }
@@ -117,12 +117,6 @@ export function evaluateKeyboardEvent(
117
117
  }
118
118
  if (modifiers) {
119
119
  result.key = C0.ESC + '[1;' + (modifiers + 1) + 'D';
120
- // HACK: Make Alt + left-arrow behave like Ctrl + left-arrow: move one word backwards
121
- // http://unix.stackexchange.com/a/108106
122
- // macOS uses different escape sequences than linux
123
- if (result.key === C0.ESC + '[1;3D') {
124
- result.key = C0.ESC + (isMac ? 'b' : '[1;5D');
125
- }
126
120
  } else if (applicationCursorMode) {
127
121
  result.key = C0.ESC + 'OD';
128
122
  } else {
@@ -136,12 +130,6 @@ export function evaluateKeyboardEvent(
136
130
  }
137
131
  if (modifiers) {
138
132
  result.key = C0.ESC + '[1;' + (modifiers + 1) + 'C';
139
- // HACK: Make Alt + right-arrow behave like Ctrl + right-arrow: move one word forward
140
- // http://unix.stackexchange.com/a/108106
141
- // macOS uses different escape sequences than linux
142
- if (result.key === C0.ESC + '[1;3C') {
143
- result.key = C0.ESC + (isMac ? 'f' : '[1;5C');
144
- }
145
133
  } else if (applicationCursorMode) {
146
134
  result.key = C0.ESC + 'OC';
147
135
  } else {
@@ -155,12 +143,6 @@ export function evaluateKeyboardEvent(
155
143
  }
156
144
  if (modifiers) {
157
145
  result.key = C0.ESC + '[1;' + (modifiers + 1) + 'A';
158
- // HACK: Make Alt + up-arrow behave like Ctrl + up-arrow
159
- // http://unix.stackexchange.com/a/108106
160
- // macOS uses different escape sequences than linux
161
- if (!isMac && result.key === C0.ESC + '[1;3A') {
162
- result.key = C0.ESC + '[1;5A';
163
- }
164
146
  } else if (applicationCursorMode) {
165
147
  result.key = C0.ESC + 'OA';
166
148
  } else {
@@ -174,12 +156,6 @@ export function evaluateKeyboardEvent(
174
156
  }
175
157
  if (modifiers) {
176
158
  result.key = C0.ESC + '[1;' + (modifiers + 1) + 'B';
177
- // HACK: Make Alt + down-arrow behave like Ctrl + down-arrow
178
- // http://unix.stackexchange.com/a/108106
179
- // macOS uses different escape sequences than linux
180
- if (!isMac && result.key === C0.ESC + '[1;3B') {
181
- result.key = C0.ESC + '[1;5B';
182
- }
183
159
  } else if (applicationCursorMode) {
184
160
  result.key = C0.ESC + 'OB';
185
161
  } else {