keycodes icon indicating copy to clipboard operation
keycodes copied to clipboard

modify getKeyCodeEvent to match better. Fixes 336

Open wesbos opened this issue 2 years ago • 0 comments

When toptal updated the codebase, the logic for finding the keycode was too strict. It was expecting both the .code and the .key - so that filtered out descriptions on keys without one of those values. Importantly this was excluding every single modifier key - like Shift + a being code A.

Easy fix - it should a bit more relaxed on finding. The code first, if not, the key.

Fixes #334

wesbos avatar Feb 01 '23 17:02 wesbos