From 16ee7b28ae9d50f4ea1a6f72263d54a18317acc2 Mon Sep 17 00:00:00 2001 From: Gibah Joseph Date: Sun, 16 Apr 2023 08:35:16 +0100 Subject: [PATCH 1/2] feat (spatial navigation): This allows for navigation using the arrow keys on keyboard and remote control. Also add support for play/pause button on webos # Conflicts: # frontend/src/store/playbackManager.ts --- frontend/src/App.vue | 2 +- frontend/src/assets/styles/global.scss | 6 + .../Buttons/Playback/PlayButton.vue | 2 + frontend/src/components/Item/Card/Card.vue | 24 +- frontend/src/components/Item/SeasonTabs.vue | 22 +- .../Layout/Navigation/NavigationDrawer.vue | 43 +- frontend/src/main.ts | 39 +- frontend/src/pages/library/_itemId/index.vue | 2 +- frontend/src/pages/playback/video/index.vue | 33 +- frontend/src/plugins/spatialNav/extension.ts | 7 + frontend/src/plugins/spatialNav/index.ts | 167 ++ frontend/src/plugins/spatialNav/options.ts | 103 ++ .../plugins/spatialNav/spatialNavigation.js | 1541 +++++++++++++++++ 13 files changed, 1980 insertions(+), 11 deletions(-) create mode 100644 frontend/src/plugins/spatialNav/extension.ts create mode 100644 frontend/src/plugins/spatialNav/index.ts create mode 100644 frontend/src/plugins/spatialNav/options.ts create mode 100644 frontend/src/plugins/spatialNav/spatialNavigation.js diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 33619239ef3..7a58928aead 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -1,6 +1,6 @@