Skip to content

[Bug] Uncaught TypeError: e.getModifierState is not a function when using AutoFill in Chrome or Edge #4325

@justin-mellor

Description

@justin-mellor

Reproducible in vscode.dev or in VS Code Desktop?

  • Not reproducible in vscode.dev or VS Code Desktop

Reproducible in the monaco editor playground?

Monaco Editor Playground Link

https://microsoft.github.io/monaco-editor/playground.html?source=v0.45.0#XQAAAALPAQAAAAAAAABBqQkHQ5NjdWX_QlY8elt1pNs_6w0JpADsxkIibQ4UF1H1DOiVjoiCcXryotF3-FScMrdUTFY2N9rYW7Rvn8toGAduu845WKA_3gtIsou2w81P-Nn1qpd1PJbYFe457jNKMRsobVqDRNkd5gMoxJoz7UwsJx8lmnhOk9tyuUtMpWa5IdrO74lmGLe2Vp7a7q1pG8XNQz4_jhk_70sjpNwkiiLhJuyFxGCRQ6QPhHckAjHy2l7jWkpKOKZbiml25iQU5paF87C-3t-tBbk_QHJmbrw7Cnlq8vs_LCWrOnLtgzLOnshAZbkd8Eldg8n7gNXPGttEhyxcTilGPuctsyea3jMyaCxeHhFDBURIaREWTxyJ6-QtSrcSufWfkK-VI8hFfXTLm9xGSs6r3RLrm6ZZ3_CpAmtLqp2-FZk3_uM-oWTYuLxeI6T_kXvpI55SKy7BS_42ZyJ-72YRLblgoUJMD1n_77MOAQ

Monaco Editor Playground Code

No response

Reproduction Steps

Using Chrome or Edge
Enter some text in the text box "Use AutoFill to populate this textbox"
Click Reload to populate your auto fill buffer in the browser
Now click inside the text box "Use AutoFill to populate this textbox"
Choose your text from the "Saved data" dropdown

Actual (Problematic) Behavior

In the console an error is thrown

Uncaught TypeError: e.getModifierState is not a function
    at new StandardKeyboardEvent (keyboardEvent.ts:111:24)
    at HTMLBodyElement.<anonymous> (dom.ts:178:18)

Expected Behavior

No error should be thrown

Additional Context

No response

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions