PracticeJavaScript / practicejavascript.com

Practice JavaScript with this fun game
https://practicejavascript.com/
MIT License
0 stars 0 forks source link

UX - Keyboard shortcuts #7

Closed dllndv closed 7 years ago

dllndv commented 7 years ago

I think we could use some keyboard shortcuts, such as shift+enter to go to the next problem, and a different shortcut for the shuffle button. Maybe a shortcut to copy their whole solution in case they wanted to make a gist of all the answers. Just a goal to make the app completely usable without touching the mouse.

spacerockzero commented 7 years ago

Yes, I've been frustrated by having to leave the keyboard when i'm on a roll, too. great idea!

spacerockzero commented 7 years ago

Research:

SUBMIT keybinding:

spacerockzero commented 7 years ago

Could also automatically move to next problem if the tests all pass

dllndv commented 7 years ago

maybe a simple button slides in at the bottom of the code window, congratulating the user and then just says, "hit enter for next problem". Moving them automatically to the next problem might make them wonder if something's broken.

spacerockzero commented 7 years ago

I have a PR for the next/prev keybindings ready here: https://github.com/PracticeJavaScript/practicejavascript.com/pull/35 It could use more browser testing on non-mac things.

spacerockzero commented 7 years ago

merged.