mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-08 14:59:08 +01:00
Fix 'e.getModifierState is not a function' error for browser auto filled form events (#206883)
Update keyboardEvent.ts
This commit is contained in:
@@ -142,7 +142,7 @@ export class StandardKeyboardEvent implements IKeyboardEvent {
|
||||
this.shiftKey = e.shiftKey;
|
||||
this.altKey = e.altKey;
|
||||
this.metaKey = e.metaKey;
|
||||
this.altGraphKey = e.getModifierState('AltGraph');
|
||||
this.altGraphKey = e.getModifierState?.('AltGraph');
|
||||
this.keyCode = extractKeyCode(e);
|
||||
this.code = e.code;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user