github / github/hotkey

TypeError: Cannot read properties of undefined (reading 'startsWith')

Open
#70 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.3k
Forks
99
Avg merge
14h 22m
Merged PRs (30d)
6

Description

We are observing a `TypeError` from this line:

```.ts
const elideShift = event.code.startsWith('Key') && event.shiftKey && event.key.toUpperCase() === event.key;
```

See: [Sentry](https://sentry.io/organizations/github/issues/?project=1890375&query=is%3Aunresolved+github%2Fhotkey&sort=new&statsPeriod=1h)

Though this was first seen 9 months ago, looks like there has been a recent spike.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.