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 TAB
s are required to focus on the Close/Cancel button.
And a lot of TAB
s 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 pressClick 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
ThenTAB
focuses on the first top button: WPM
AndEnter
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..
ThenTAB
focuses on the first link: Credits
AndEnter
opens the Credits page.