@lightningtv/core
Advanced tools
Comparing version 2.4.2 to 2.4.3
@@ -133,4 +133,4 @@ import { Config } from './config.js'; | ||
const key = keypress.key || keypress.keyCode; | ||
const mappedKeyHoldEvent = keyHoldMapEntries[key]; | ||
const mappedKeyEvent = keyMapEntries[key]; | ||
const mappedKeyHoldEvent = keyHoldMapEntries[keypress.key] || keyHoldMapEntries[keypress.keyCode]; | ||
const mappedKeyEvent = keyMapEntries[keypress.key] || keyMapEntries[keypress.keyCode]; | ||
if (!mappedKeyHoldEvent) { | ||
@@ -148,3 +148,3 @@ propagateKeyDown(keypress, mappedKeyEvent, false); | ||
const key = keyup.key || keyup.keyCode; | ||
const mappedKeyEvent = keyMapEntries[key]; | ||
const mappedKeyEvent = keyMapEntries[keyup.key] || keyMapEntries[keyup.keyCode]; | ||
if (keyHoldTimeouts[key]) { | ||
@@ -151,0 +151,0 @@ clearTimeout(keyHoldTimeouts[key]); |
{ | ||
"name": "@lightningtv/core", | ||
"version": "2.4.2", | ||
"version": "2.4.3", | ||
"description": "Lightning TV Core for Universal Renderers", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -183,4 +183,6 @@ import { Config } from './config.js'; | ||
const key: KeyNameOrKeyCode = keypress.key || keypress.keyCode; | ||
const mappedKeyHoldEvent = keyHoldMapEntries[key]; | ||
const mappedKeyEvent = keyMapEntries[key]; | ||
const mappedKeyHoldEvent = | ||
keyHoldMapEntries[keypress.key] || keyHoldMapEntries[keypress.keyCode]; | ||
const mappedKeyEvent = | ||
keyMapEntries[keypress.key] || keyMapEntries[keypress.keyCode]; | ||
if (!mappedKeyHoldEvent) { | ||
@@ -201,3 +203,4 @@ propagateKeyDown(keypress, mappedKeyEvent, false); | ||
const key: KeyNameOrKeyCode = keyup.key || keyup.keyCode; | ||
const mappedKeyEvent = keyMapEntries[key]; | ||
const mappedKeyEvent = | ||
keyMapEntries[keyup.key] || keyMapEntries[keyup.keyCode]; | ||
if (keyHoldTimeouts[key]) { | ||
@@ -204,0 +207,0 @@ clearTimeout(keyHoldTimeouts[key]); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
225479
3475