downforacross / downforacross.com

Web frontend for downforacross.com -- continuation of stevenhao/crosswordsio
https://downforacrosscom.downforacross1.now.sh
MIT License
220 stars 92 forks source link

Cannot type numerical rebus answers #244

Open katlyn-edwards opened 1 year ago

katlyn-edwards commented 1 year ago

Today's NYT puzzle (Sunday July 17th) has numerical rebus inputs (e.g. in this case the number '10'). In order to type those, you need to hold down Shift, which changes the keys being entered.

You could probably fix this by using 'keyCode' instead of 'key' (which will return the non-shift'd variant), but then you'd have to map keys to number codes :/

stevenhao commented 1 year ago

Ah yeah, this is a pretty rare case. It might make sense to add a rebus entry mode (which always rebuses regardless of Shift being held down) that users can toggle by clicking a button labeled "Rebus" in the toolbar. PR's for this welcome!

image

Incidentally, I use https://www.kaufmann.no/roland/dvorak/ which doesn't actually have this problem, since all the numbers are in the shift position :)

frozenpandaman commented 1 year ago

Haha, this is a fun edge case.

I had the same idea re: adding a 'Rebus' entry in the toolbar – the CrosswordNexus solver has this too (https://github.com/crosswordnexus/html5-crossword-solver)