We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6989474 commit 22dd887Copy full SHA for 22dd887
packages/telemetry/browser-telemetry/src/collectors/dom/KeypressCollector.ts
@@ -16,6 +16,10 @@ export default class KeypressCollector implements Collector {
16
private _lastEvent?: UiBreadcrumb;
17
18
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.
23
window.addEventListener(
24
'keypress',
25
(event: KeyboardEvent) => {
0 commit comments