eh-am / fightcade-gamepad-navigation

1 stars 0 forks source link

Only disable external links when gamepad is recognized #17

Open eh-am opened 9 months ago

eh-am commented 9 months ago

Currently we disable all external links, since we don't want the browser to open, which potentially would make users controlling with a gamepad stuck: https://github.com/eh-am/fightcade-gamepad-navigation/blob/616687f7e89a91ec9ff3b76706b9081b67388acc/src/inject.ts#L40-L44

But that prevents keyboard users to open those links. Maybe we should only enable that when a gamepad is recognized?