JaredReisinger / react-crossword

A flexible, responsive, and easy-to-use crossword component for React apps.
https://react-crossword.jaredreisinger.com
MIT License
171 stars 84 forks source link

More natural navigation through the puzzle? #475

Open roma0615 opened 1 year ago

roma0615 commented 1 year ago

Right now, after the user is done typing a guess, the focus doesn't jump to the next open square. It seems like this behavior would help with getting around the puzzle quickly, so I was wondering if there could be an option to enable this kind of navigation? (Maybe something like autoJumpToNextClue)

If my description wasn't clear, this demo has the behavior I'm describing. (Also, the above demo's arrowkey navigation works a bit differently as well—it lets you go "through" black squares instead of having to go around them. That might also be desirable for navigability)

johnpc commented 7 months ago

Agreed, this is annoying. Is there at least a workaround? I can't see any callback that I can use to force the focus to the next cell, unless I'm missing something.

RedLeeder commented 7 months ago

+1 This would be a super useful QoL update for users