fluid-lab / gamepad-navigator

GSoC 2020 project
Other
6 stars 10 forks source link

Limit navigation to "controllable" windows. #116

Closed duhrer closed 7 months ago

duhrer commented 7 months ago

We do not currently check to see if we are navigating to a window that the gamepad will not be able to control. If we add a "filter" function to screen out chrome:// URLs, we can use this to avoid focusing on an uncontrollable window when we:

  1. Switch to the previous tab.
  2. Switch to the next tab.
  3. Switch to the previous window.
  4. Switch to the next window.
  5. Reopen the last closed tab or window.
  6. Moving forwards in history.
  7. Moving backwards in history.

As part of this we might also refuse to close the last window/tab that is controllable. We might also open a controllable window on startup if none is open. Both of these should be configurable.

duhrer commented 7 months ago

I didn't end up coming up with an approach to the last closed tab or history, but otherwise this has been merged and will be included in the upcoming 1.0 release.