From 972a2f8488fa7e42d30cf8dcd8677b3256cce184 Mon Sep 17 00:00:00 2001 From: Bradley Eaton Date: Sat, 5 Jul 2025 17:52:41 +0100 Subject: [PATCH] Code review tweaks --- src/apps/stable/routes/user/settings/index.tsx | 3 ++- src/controllers/user/controls/index.js | 5 +++-- src/scripts/keyboardNavigation.js | 12 +++++++++--- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/apps/stable/routes/user/settings/index.tsx b/src/apps/stable/routes/user/settings/index.tsx index 99fac50d7..df5071f3c 100644 --- a/src/apps/stable/routes/user/settings/index.tsx +++ b/src/apps/stable/routes/user/settings/index.tsx @@ -15,6 +15,7 @@ import globalize from 'lib/globalize'; import browser from 'scripts/browser'; import Dashboard from 'utils/dashboard'; import shell from 'scripts/shell'; +import keyboardNavigation from 'scripts/keyboardNavigation'; const UserSettingsPage: FC = () => { const { user: currentUser } = useApi(); @@ -47,7 +48,7 @@ const UserSettingsPage: FC = () => { } // gamepad toggle unavailable on EdgeUWP, and smoothscroll unavailable on non-TV layout - const isControlsPageEmpty = browser.edgeUwp && !layoutManager.tv; + const isControlsPageEmpty = !keyboardNavigation.canEnableGamepad() && !layoutManager.tv; return (