mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2026-09-03 03:50:02 +03:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user