@applicaster/zapp-react-dom-app 14.0.10-alpha.4515005205 → 14.0.10-alpha.5112243140
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -164,7 +164,7 @@ class InteractionManagerClass extends React.Component<Props, State> {
|
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
componentDidMount() {
|
|
167
|
-
window.addEventListener("keydown", this.onKeyDownListener,
|
|
167
|
+
window.addEventListener("keydown", this.onKeyDownListener, false); // Let events bubble
|
|
168
168
|
window.addEventListener("keyup", this.onKeyUp);
|
|
169
169
|
window.addEventListener("mousemove", this.onMouseMoveListener);
|
|
170
170
|
|
|
@@ -535,6 +535,21 @@ class InteractionManagerClass extends React.Component<Props, State> {
|
|
|
535
535
|
return;
|
|
536
536
|
}
|
|
537
537
|
|
|
538
|
+
// TODO: find alternative, using this logic to allow events to be passed to player controls
|
|
539
|
+
// Still handle other keys (back, play/pause, etc.) through InteractionManager
|
|
540
|
+
const isPlayerActive = (
|
|
541
|
+
window as any
|
|
542
|
+
)?.applicaster?.player?.getVideoElement();
|
|
543
|
+
|
|
544
|
+
const isNavigationKey =
|
|
545
|
+
keyCode(event).matchesAny(...ARROW_KEYS) ||
|
|
546
|
+
keyCode(event).matches(KEYS.Enter) ||
|
|
547
|
+
(__DEV__ && keyCode(event).matches(KEYS.X));
|
|
548
|
+
|
|
549
|
+
if (isPlayerActive && isNavigationKey) {
|
|
550
|
+
return;
|
|
551
|
+
}
|
|
552
|
+
|
|
538
553
|
if (keyCode(event).matches("Backspace")) {
|
|
539
554
|
this.onBackspacePress(event);
|
|
540
555
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-dom-app",
|
|
3
|
-
"version": "14.0.10-alpha.
|
|
3
|
+
"version": "14.0.10-alpha.5112243140",
|
|
4
4
|
"description": "Zapp App Component for Applicaster's Quick Brick React Native App",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
},
|
|
23
23
|
"homepage": "https://github.com/applicaster/zapp-react-dom-app#readme",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@applicaster/zapp-react-dom-ui-components": "14.0.10-alpha.
|
|
26
|
-
"@applicaster/zapp-react-native-bridge": "14.0.10-alpha.
|
|
27
|
-
"@applicaster/zapp-react-native-redux": "14.0.10-alpha.
|
|
28
|
-
"@applicaster/zapp-react-native-ui-components": "14.0.10-alpha.
|
|
29
|
-
"@applicaster/zapp-react-native-utils": "14.0.10-alpha.
|
|
25
|
+
"@applicaster/zapp-react-dom-ui-components": "14.0.10-alpha.5112243140",
|
|
26
|
+
"@applicaster/zapp-react-native-bridge": "14.0.10-alpha.5112243140",
|
|
27
|
+
"@applicaster/zapp-react-native-redux": "14.0.10-alpha.5112243140",
|
|
28
|
+
"@applicaster/zapp-react-native-ui-components": "14.0.10-alpha.5112243140",
|
|
29
|
+
"@applicaster/zapp-react-native-utils": "14.0.10-alpha.5112243140",
|
|
30
30
|
"abortcontroller-polyfill": "^1.7.5",
|
|
31
31
|
"typeface-montserrat": "^0.0.54",
|
|
32
32
|
"video.js": "7.14.3",
|