RobertWHurst / Keystrokes

Keystrokes as an easy to use library for binding functions to keys and key combos. It can be used with any TypeScript or JavaScript project, even in non-browser environments.
MIT License
158 stars 6 forks source link

Google Autofill bug #50

Open hotgen opened 4 months ago

hotgen commented 4 months ago

Describe the bug When I select one of the options in Google Autofill, an exception occurs:

keystrokes.umd.cjs:1 Uncaught TypeError: Cannot read properties of undefined (reading 'toLowerCase')
    at g._handleKeyPress (keystrokes.umd.cjs:1:9512)
    at eval (keystrokes.umd.cjs:1:8962)
    at HTMLDocument.e (keystrokes.umd.cjs:1:1273)
_handleKeyPress @ keystrokes.umd.cjs:1
eval @ keystrokes.umd.cjs:1
e @ keystrokes.umd.cjs:1

keystrokes.umd.cjs:1 Uncaught TypeError: Cannot read properties of undefined (reading 'toLowerCase')
    at g._handleKeyRelease (keystrokes.umd.cjs:1:10240)
    at eval (keystrokes.umd.cjs:1:9020)
    at HTMLDocument.e (keystrokes.umd.cjs:1:1523)

To Reproduce Here is the Codesandbox. You should have some Autofill options for "username" input: https://codesandbox.io/p/sandbox/vibrant-curran-5zvtfw

Expected behavior No errors.

RobertWHurst commented 2 months ago

Odd. Not sure why this is. If anyone has the time to debug it would be apricated.

Paul2803k commented 2 months ago

I have been having the same issue! I may try to take a look at some point next month :)