shithub: puzzles

Download patch

ref: 768ef770a351ee1528e6e7923d3b3b00654401cb
parent: 0db5fb525bb58056caf9303d2ac159fc51c04e04
author: Ben Harris <bjh21@bjh21.me.uk>
date: Mon Oct 24 19:06:12 EDT 2022

js: Use KeyboardEvent.key for ASCII keystrokes

This requires passing in KeyboardEvent.location from JavaScript so
that we can detect the numeric keypad properly.  Out of caution we
currently only set MOD_NUM_KEYPAD on numbers, like we always have,
but we have enough information to set it on arrow keys, Enter, "+",
etc.

This finally gets '/' and '\' working in Slant again.