Skip to content

Commit 22dd887

Browse files
committed
Keypress note.
1 parent 6989474 commit 22dd887

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/telemetry/browser-telemetry/src/collectors/dom/KeypressCollector.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ export default class KeypressCollector implements Collector {
1616
private _lastEvent?: UiBreadcrumb;
1717

1818
constructor() {
19+
// Currently we use the keypress event, but it is technically deprecated.
20+
// It is the simplest way to currently get the most broad coverage.
21+
// In the future we may want to consider some check to attempt to selectively use a more
22+
// targetted event.
1923
window.addEventListener(
2024
'keypress',
2125
(event: KeyboardEvent) => {

0 commit comments

Comments
 (0)