Don't populate 'key' and 'code' with dummy values

The check for the presence of the 'KeyboardEvent.key' property is broken.

Regression: ab5c4949c3
This commit is contained in:
Dmitry Lyzo
2026-05-13 20:53:29 +03:00
parent 91e09a6295
commit a678a6cf8d
+1 -2
View File
@@ -21,9 +21,8 @@
event.view = options.view || document.defaultView;
event.key = options.key || options.keyIdentifier || '';
// Don't populate 'key' and 'code' with dummy values
event.keyCode = options.keyCode || 0;
event.code = options.code || '';
event.charCode = options.charCode || 0;
event.char = options.char || '';
event.which = options.which || 0;