r3oath / burst-type.pro

Practice typing the most common words to build burst speed and muscle memory.

Home Page:https://www.burst-type.pro/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Better keyboard support, close settings page and focus continue button

duianto opened this issue · comments

The mouse is pretty much required to continue typing the current word after accidentally (described below) opening a settings or credits page.

Because a lot of TABs are required to focus on the Close/Cancel button.

And a lot of TABs are also required to focus on the middle button: Click here to focus & continue
after closing a settings or credits page.

Expected

  • press ESC to close a settings or credits page.
  • focus on the middle button: Click here to focus & continue after closing the settings or credits page.
  • And maybe Ctrl Enter could press Click here to focus & continue on the main page, then it wouldn't matter which element is focused.

How a settings page or the credits page can be opened accidentally

Most often TAB focuses on the middle button: Click here to focus & continue
And Enter presses Click here to focus & continue

This makes it easy to continue practicing by quickly pressing TAB Enter after alt-tabbing back to the Burst-type window.

But if the Burst-type window was activated:

  • by mouse-clicking to the left or right of the top buttons
    Then TAB focuses on the first top button: WPM
    And Enter opens the WPM settings page.

  • or by mouse-clicking to the left, on the middle or to the right of the discovered words panel, or to the left or right of the bottom links: Credits, GitHub, License, etc..
    Then TAB focuses on the first link: Credits
    And Enter opens the Credits page.