Commit 580ee5d
committed
Remove dependency on window.event in ListView
Fixes microsoft/monaco-editor#371.
The `event` property of Window is [nonstandard] and isn't supported by Firefox,
breaking some of ListView's event-handling behavior.
I checked for places where VSCode depends on `window.event` by removing it from
`lib.d.ts` and building from scratch; the references in ListView were the only
ones I found in `src/vs/base/browser`. There are also some references in
non-browser parts of the codebase, but I assume that's fine since they work in
Electron.
[nonstandard]: https://developer.mozilla.org/en-US/docs/Web/API/Window/event1 parent 82f1170 commit 580ee5d
1 file changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
246 | 250 | | |
247 | 251 | | |
248 | 252 | | |
| |||
255 | 259 | | |
256 | 260 | | |
257 | 261 | | |
258 | | - | |
| 262 | + | |
259 | 263 | | |
260 | 264 | | |
261 | 265 | | |
262 | | - | |
| 266 | + | |
263 | 267 | | |
264 | 268 | | |
265 | 269 | | |
| |||
0 commit comments