We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1ec11f commit 678843fCopy full SHA for 678843f
src/vs/base/browser/dom.ts
@@ -1472,12 +1472,13 @@ export class ModifierKeyEmitter extends Emitter<IModifierKeyStatus> {
1472
};
1473
1474
this._subscriptions.add(domEvent(document.body, 'keydown', true)(e => {
1475
- // if keydown event is repeated, ignore it #112347
1476
- if (e.repeat) {
1477
- return;
1478
- }
1479
1480
const event = new StandardKeyboardEvent(e);
+ // If Alt-key keydown event is repeated, ignore it #112347
+ // Only known to be necessary for Alt-Key at the moment #115810
+ if (event.keyCode === KeyCode.Alt && e.repeat) {
+ return;
1481
+ }
1482
1483
if (e.altKey && !this._keyStatus.altKey) {
1484
this._keyStatus.lastKeyPressed = 'alt';
0 commit comments